Why cant i do something like that ?
var a=[[1, 0], [0, 1]]
or at least
var a: Array<Array<Int>> = [[1, 0], [0, 1]]
is it just impossible to do in kotlin?
Why cant i do something like that ?
var a=[[1, 0], [0, 1]]
or at least
var a: Array<Array<Int>> = [[1, 0], [0, 1]]
is it just impossible to do in kotlin?
Kotlin is different language and has different array initialization for example you could use arrayOf and also primitive method like intArrayOf for integers
arrayOf(intArrayOf(1,0), intArrayOf(0,1))