[Haskell-cafe] lazy evaluation

Henning Thielemann lemming at henning-thielemann.de
Wed Feb 6 08:43:46 EST 2008


On Wed, 6 Feb 2008, Peter Padawitz wrote:

> Can anybody give me a simple explanation why the second definition of a
> palindrome checker does not terminate, although the first one does?

Just another question, what about
   x == reverse x
 ? - You can still optimize for avoiding duplicate equality tests.


More information about the Haskell-Cafe mailing list