Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.31 KB | None | 0 0
  1. def updateGrid(grid: List[List[Int]], update: List[(Int, Int, Int)]): List[List[Int]] = update match{
  2.         case List() => grid
  3.         case (x,y,z)::xs => updateGrid(grid.updated(x, grid(x).updated(y,z)), update.tail)
  4.       }
  5.       new Sudoku(updateGrid(sudoku.grid, chooseSingleton(allHypothesis)))
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement