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

I always liked the elegance of this definition of the power set function in Haskell:

  powerSet = filterM (const [True, False])


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

Search: