by thepicard · 13y ago · 0 comments
greaterThan(100, 5);
//=> true
That is, l is greater than r, and to then properly curry the arguments do need to be flipped such that maybeGT(5) results in a function that returns whether the argument is greater than 5. var gtThreshold = gt(100);
And then: filter(gtThreshold, array);
This is nicely fluent I would say.