Skip to content

Instantly share code, notes, and snippets.

@bebraw
Last active December 12, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bebraw/4749544 to your computer and use it in GitHub Desktop.
Save bebraw/4749544 to your computer and use it in GitHub Desktop.
Partial test.
var gt = partialize(function(a, b) {
return a < b;
}, 2);
function partialize(fn, amount) {
return function() {
return partial(fn, arguments);
}
};
gt(3);
// filter(partial(gt, 3), arr)
// filter(gt(3), arr)
// gt(3, 2)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment