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
"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.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe