x/rambda/source/over.js
123456789101112131415import { curry } from './curry.js'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)