[Haskell-cafe] memoization

14875 depot051 at gmail.com
Mon Jul 22 15:55:43 CEST 2013


in this case, neither of them is memoized. because they don't have any data
in expressions.
"memoized" is for constants who have data structure in its expression


2013/7/22 Tom Ellis <tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk>

> 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
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130722/fc7c0c93/attachment.htm>


More information about the Haskell-Cafe mailing list