Towers of Hanoi in Haskell

Haskell is a statically typed purely functional language.

It's very terse and the code produced tends to be one of the most concise of any programming language. On top of that it runs very fast.

Compare it with the Java program in the previous post and see how compact we managed to write the algorithm without losing legibility or correctness.

Comments