Page 774 (PDF page 805):
Trying to create array of arrays in a way the book suggests:
val cells = new Array[Array[Cell]](height, width)
yields compiler error:
too many arguments for constructor Array: (_length:
Int)Array[Array[Model.this.Cell]]
So I used:
val cells = Array.ofDim[Cell](height, width)
|