x/rambda/src/over.js
12345678910111213import {curry} from './curry'const Identity = x => ({ x, map: fn => Identity(fn(x)),})function overFn(lens, fn, object) { return lens(x => Identity(fn(x)))(object).x}export const over = curry(overFn)