Higher-Order Function

Published: 1/18/2020
Last edited: 1/26/2020

A function which takes a function and possible additional parameters, and returns a function.

const map = fn => xs => xs.map(x => fn(x))
// import {map} from 'ramda'
map(times(2))([1,2,3]) === [2,4,6]
Published: 1/18/2020
Last edited: 1/26/2020
See this page on Github
Built with 💛 by Open Sorcerers
Created with Gatsby using the 😎 foresight starter