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-2...@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@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe >
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe