Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lgas
on Oct 28, 2019
|
parent
|
context
|
favorite
| on:
Ask HN: What is the most beautiful piece of code y...
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: