Towers of Hanoi: Difference between revisions

Standard ML Towers of Hanoi solution
m (Standard ML Towers of Hanoi solution)
(Standard ML Towers of Hanoi solution)
Line 3,283:
=={{header|Standard ML}}==
fun hanoi(0, a, b, c) = [] |
hanoi(n, a, b, c) = hanoi(n-1, a, c, b) @ [(a,b)] @ hanoi(n-1, c, b, a);
 
=={{header|Swift}}==