Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In haskell you could write something like this: parMap rseq (\x->/some long computation/) [1..4]

using the standard Control.Parallel.Strategies library (use rwhnf instead of rseq unless you are using v3).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: