Towers of Hanoi: Difference between revisions

Content added Content deleted
Line 441: Line 441:
let main args =
let main args =
(hanoi 4 1 2) |> List.iter (fun pair -> match pair with
(hanoi 4 1 2) |> List.iter (fun pair -> match pair with
| (a, b) -> printf "Move disc from %A to %A\n" a b)
| a, b -> printf "Move disc from %A to %A\n" a b)
0</lang>
0</lang>