7 ms·
Actually, I think the original intent regarding greater than was: greaterThan(100, 5); //=> true That is, l is greater than r, and to then properly cu
by thepicard 13y ago
Actually, I think the original intent regarding greater than was:
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.
- fogus 13y agoExactly right. We like to be able to do something like: var gtThreshold = gt(100); And then: filter(gtThreshold, array); This is nicely fluent I would say.