Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>over

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