[Haskell-cafe] GHC strange behavior
Ruslan Evdokimov
ruslan.evdokimov at gmail.com
Sat Feb 16 20:37:00 EST 2008
2008/2/17, Stefan O'Rear <stefanor at cox.net>:
>
> As far as I can tell, that confirms my explanation. If you see it
> differently - say how.
>
> Stefan
>
Seems you're right, I changed it to:
[e,o] = map sum $ [filter even numbers, (filter odd) $ reverse numbers]
It prevents numbers from being collected and here is results:
>test.exe
1
12812 ms
>test.exe +RTS -N2
1
16671 ms
More information about the Haskell-Cafe
mailing list