Hacker News new | ask | show | jobs
by thepicard 4758 days 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.
1 comments

Exactly 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.