[Haskell-cafe] Memoization/call-by-need

Henning Thielemann schlepptop at henning-thielemann.de
Mon Sep 20 03:52:04 EDT 2010


Alex Rozenshteyn schrieb:
> I feel that there is something that I don't understand completely:  I
> have been told that Haskell does not memoize function call, e.g.
>> slowFib 50
> will run just as slowly each time it is called.  However, I have read
> that Haskell has call-by-need semantics, which were described as "lazy
> evaluation with memoization"

http://www.haskell.org/haskellwiki/Memoization



More information about the Haskell-Cafe mailing list