Towers of Hanoi: Difference between revisions
m
→{{header|Haskell}}: (matched names to label strings)
(→{{header|Haskell}}: writing it as a monoid, and adding some output) |
m (→{{header|Haskell}}: (matched names to label strings)) |
||
Line 1,683:
hanoi :: Int -> t -> t -> t -> [[t]]
hanoi n
if n > 0
then hanoi (n - 1)
else mempty
|