Re:Trine – A utility library for functional programming in J...
by CrossEye on Thursday June 11, 2015 @12:17PM
(#9700563)
The difference starts to show when you want to partially apply some values.
That's why I'm wondering if there's some easier way to do this.
[ Parent
| on HN ]
Re:Trine – A utility library for functional programming in J...
by icebraining on Thursday June 11, 2015 @01:00PM
(#9700879)
I believe you can use partial() from this post[1] to do something like this:
var processT1 = (isOk, items) => items.filter(isOk).map(toOtherType).flatten();
var processT2 = partial(processT1, isOk);
http://benalman.com/news/2012/09/partial-application-in-java...