Towers of Hanoi: Difference between revisions

Content added Content deleted
(→‎{{header|Perl 6}}: junctions are perfectly fine for smarmaching)
Line 1,677: Line 1,677:
=={{header|Perl 6}}==
=={{header|Perl 6}}==
{{works with|Rakudo|#22 "Thousand Oaks"}}
{{works with|Rakudo|#22 "Thousand Oaks"}}
<lang perl6>subset Peg of Int where * == 1|2|3;
<lang perl6>subset Peg of Int where 1|2|3;


multi hanoi (0, Peg $a, Peg $b, Peg $c) { }
multi hanoi (0, Peg $a, Peg $b, Peg $c) { }