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

The automatic currying caught my eye, way nicer than partial application in underscore


Lo-Dash 3.0 will be getting _.curryRight, _.rearg, & _.ary to complement _.curry. With them you can easily create auto-curried flavors of functions.

  var where = _(_.where).rearg(1,0).curry().value();




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: