https://kotlinlang.org logo
r

robin

01/18/2017, 3:28 PM
You'll have to destructure them like this though:
val (first, rest: List<String>) = listOf("Hi", "Test", "Etc")