UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

10 lines (7 loc) 212 B
import {always} from './always.js' import {curry} from './curry.js' import {over} from './over.js' function setFn(lens, replacer, x) { return over(lens, always(replacer), x) } export const set = curry(setFn)