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

Your pipeline example looks more fit for simple function composition.

  f = filter (\x color x == BlueColor) . select (\x color x == RedColor)


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: