Anonymous user
N-queens problem: Difference between revisions
m
→{{header|Tailspin}}: use new array content matchers
m (→{{header|Tailspin}}: syntax update) |
m (→{{header|Tailspin}}: use new array content matchers) |
||
Line 10,886:
def minor: $ - $prev::length - 1;
def major: $ + $prev::length + 1;
-> (<?($
->
-> [
▲ -> [ $prev..., $row] !
end addIfPossible
1..$n -> addIfPossible !
|