Towers of Hanoi: Difference between revisions
Content added Content deleted
Line 216: | Line 216: | ||
map(hanoi(3, "left", "right", "mid"), arrows) |
map(hanoi(3, "left", "right", "mid"), arrows) |
||
-- n -> s -> s -> s -> [ |
-- n -> s -> s -> s -> [(s, s)] |
||
on hanoi(n, a, b, c) |
on hanoi(n, a, b, c) |
||
if n > 0 then |
if n > 0 then |