Aregev2
08/06/2018, 4:51 PMval nested = listOf(listOf(12), listOf(12))
val (one, two) = nested
println("$one, $two")
That throws IOFB exception, I do not understand whyRuckus
08/06/2018, 4:56 PMShawn
08/06/2018, 4:57 PMIndexOutOfBounds
exception? I’ve never seen anyone abbreviate it like thatAregev2
08/06/2018, 5:01 PMval nested = listOf(listOf(12))
Shawn
08/06/2018, 5:02 PMAregev2
08/06/2018, 5:04 PMRuckus
08/06/2018, 5:04 PMnested
has only one element, what do you expect to happen when you destructure it into two?Aregev2
08/06/2018, 5:04 PMkarelpeeters
08/06/2018, 5:12 PMkevin.cianfarini
08/06/2018, 6:52 PMcomponentN()
?karelpeeters
08/06/2018, 6:55 PM