Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tmoertel
on Jan 6, 2012
|
parent
|
context
|
favorite
| on:
A Programming Idiom You've Never Heard Of
Actually (unwords . words) is the identity only for lists of strings containing no whitespace. For example:
Prelude> let xs = [" a"] in xs == (words . unwords) xs False
psykotic
on Jan 7, 2012
[–]
Thanks for catching that!
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: