This may be a dumb question, but I have an array:
var testarray = arrayOf(0,0,arrayOf(7,5,2))
So I tried to access the second array by typing testarray[2][1]. However, this throws an error:
error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public inline operator fun <@OnlyInputTypes K, V> Map<out Int, ???>.get(key: Int): ??? defined in kotlin.collections
testarray[2][1]
^
error: no get method providing array access
testarray[2][1]
Is there a way to access the nested array?