On Thu, May 15, 2008 at 8:45 PM, Andrew Coppin
<[EMAIL PROTECTED]> 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 = (:[])

Luke
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to