Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def foldLeft[R](r:R)(f:(R, (Cell,T)) => R): R = {
- elements.zipWithIndex.foldLeft(r) { case (acc, (e, k)/*this tuple is being assigned to null*/) =>
- val ij = indexToCoords(k, cols)
- f(acc,(ij, e))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement