Using kotlin's list collections?

In Kotlin, the List is an ordered collection of items. Lists are immutable by default which means once created, they cannot be modified. Here's a basic example:


  val numbers = listOf(1, 2, 3, 4, 5)
  println(numbers[0])
  

Beginner's Guide to Kotlin