Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kzrdude
on April 14, 2013
|
parent
|
context
|
favorite
| on:
What I Wish I Knew When Learning Haskell
Your pipeline example looks more fit for simple function composition.
f = filter (\x color x == BlueColor) . select (\x color x == RedColor)
jes5199
on April 14, 2013
[–]
That's true for this example, but when you do tree walking stuff in jQuery (like elements.children().children() ) then you have to think of it as a concatting map instead as just a regular map or filter
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: