Module

x/rambda/mod.ts>over

Faster and smaller alternative to Ramda
Latest
function over
import { over } from "https://dotland.deno.dev/x/rambda@9.4.1/mod.ts";

It returns a copied Object or Array with modified value received by applying function fn to lens focus.

Returns

{ (fn: (a: A) => A): (value: S) => S; (fn: (a: A) => A, value: S): S; }

Parameters

lens: Lens<S, A>
fn: (a: A) => A

Returns

(value: S) => S

Parameters

lens: Lens<S, A>
fn: (a: A) => A
value: S