4 ms·
Putting the data argument second is nice when combined with currying. For example: var bigNumbers = Udon.curry(Udon.filter)(function (number) { return
by walrus 14y ago
Putting the data argument second is nice when combined with currying. For example:
var bigNumbers = Udon.curry(Udon.filter)(function (number) {
return number > 5;
});
bigNumbers([3, 1, 4, 1, 5, 9]); // [9]
bigNumbers([2, 7, 1, 8, 2, 8]); // [7, 8, 8]