5 ms·
Most of the time you can omit type arguments: val arr = Array(height) { x -> Array(width) { y -> Tile(x, y, Terrain.GRASS) } }
by udalov 13y ago
Most of the time you can omit type arguments:
val arr = Array(height) { x -> Array(width) { y -> Tile(x, y, Terrain.GRASS) } }