Taking Things Out of Context: Functors

Values and Contexts We know we can take a value: 5 And we can apply a function to it: function addOne(a) { return a + 1; }; addOne(5); //=> 6 Pretty straightforward, right? What we also need to realise here though is that our value exists inside a "context". An easy…

Currying and Partial Application in JavaScript

Currying and partial application are two awesome techniques you may not have heard of. This post aims to give a fairly high-level overview of both concepts in JavaScript and why you should definitely be using them. Partial Application Partial application binds any number of arguments to a function and produces…