Two-dimensional Int array in Kotlin

后端 未结 3 1085
独厮守ぢ
独厮守ぢ 2021-01-01 10:11

Is it the easiest way to declare two-dimensional Int array with specified size in Kotlin?

val board = Array(n, { IntArray(n) })
3条回答
  •  情话喂你
    2021-01-01 11:02

    Currently this is the easiest way, we will extend the standard library with appropriate functions later

提交回复
热议问题