Sudoku: Difference between revisions

m
Line 4,032:
| _ -> "No solution or Parse Failure"
 
/// Is digit allowed in the square in question? !!! hot path !!!! Array/Array2D no faster and they need explicit copy since not immutable
/// Array/Array2D no faster and they need explicit copy since not immutable
let constraints (values:Map<_,_>) s d = seq {for p in peers[s] do|> Seq.map (fun p -> values[p] = d}) |> Seq.exists ((=) trued) |> not
 
/// Move to next square or None if out of bounds