what would be the idiomatic way of doing something...
# getting-started
h
what would be the idiomatic way of doing something like
Square[][] squares = new Square[8][8];
in kotlin? When pasting it into IntelliJ it gives me
val squares = Array<Array<Square>>(8) { arrayOfNulls<Square>(8) }
, but that doesn't actually compile - I have to change it into
Array<Array<Square?>>