Jump to content

Towers of Hanoi: Difference between revisions

→‎{{header|Perl 6}}: junctions are perfectly fine for smarmaching
(→‎{{header|Perl 6}}: junctions are perfectly fine for smarmaching)
Line 1,677:
=={{header|Perl 6}}==
{{works with|Rakudo|#22 "Thousand Oaks"}}
<lang perl6>subset Peg of Int where * == 1|2|3;
 
multi hanoi (0, Peg $a, Peg $b, Peg $c) { }
1,934

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.