[Haskell-cafe] memoization
Tom Ellis
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Mon Jul 22 15:06:15 CEST 2013
On Mon, Jul 22, 2013 at 07:52:06PM +1200, Chris Wong wrote:
> A binding is memoized if, ignoring everything after the equals sign,
> it looks like a constant.
>
> In other words, these are memoized:
[...]
> f = \x -> x + 1
[...]
> and these are not:
>
> f x = x + 1
In what sense is the former memoised? I'm not aware of any difference
between these two definitions.
Tom
More information about the Haskell-Cafe
mailing list