Functors are functions, that take a function and a value as a parameter. e. g. JavaScript’s map:
function addOne() {}
// takes the array, and the function "addOne"
[1, 2, 3].map(addOne)
Functors are functions, that take a function and a value as a parameter. e. g. JavaScript’s map:
function addOne() {}
// takes the array, and the function "addOne"
[1, 2, 3].map(addOne)