Skip to main content
Module

x/rambda/immutable.d.ts>over

Faster and smaller alternative to Ramda
Latest
function over
import { over } from "https://deno.land/x/rambda@v9.2.0/immutable.d.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