Sudoku: Difference between revisions

Content added Content deleted
(Added Oz solution.)
(Added Comment to Oz.)
Line 502: Line 502:


=={{header|Oz}}==
=={{header|Oz}}==
Using built-in constrain propagation and search.


<lang oz>declare
<lang oz>declare
Line 532: Line 533:
end
end


%% Returns the Board as a list of boxes (sub-grids).
%% Returns the board as a list of boxes (sub-grids).
fun {Boxes Board}
fun {Boxes Board}
{MapRange fun {$ I} {Box Board I} end}
{MapRange fun {$ I} {Box Board I} end}