Y
Hacker News
new
|
ask
|
show
|
jobs
by
udalov
4596 days ago
Most of the time you can omit type arguments:
val arr = Array(height) { x -> Array(width) { y -> Tile(x, y, Terrain.GRASS) } }