
16 May
2008
16 May
'08
6:42 p.m.
Luke Palmer wrote:
On Thu, May 15, 2008 at 8:45 PM, Andrew Coppin
wrote: Yitzchak Gale wrote:
And of course, you wouldn't want that:
f xs = xs : map expensiveCalculation xs
Please don't fuse those two loops into one.
...doesn't type check. Did you mean (++)?
Hmm? While the name might be misleading...
expensiveCalculation = (:[])
Ah. So f :: [x] -> [[x]]. Devious...