Back to front pageView on Hacker News (opens in a new tab)Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years agoPreferably an elegant snippet rather than an entire (well engineered) codebase.Comments (380) 116 threadsShow all commentsShowing thread 92 of 116lgas7 years ago#I always liked the elegance of this definition of the power set function in Haskell: powerSet = filterM (const [True, False])
Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years ago
lgas7 years ago#I always liked the elegance of this definition of the power set function in Haskell: powerSet = filterM (const [True, False])
Comments (380) 116 threads
Show all comments
Showing thread 92 of 116