Module

x/rambda/immutable.d.ts>evolve

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

It takes object or array of functions as set of rules. These rules are applied to the iterable input to produce the result.

Parameters

rules: readonly ((x: T) => U)[]
list: readonly T[]

Returns

readonly U[]

Parameters

rules: readonly ((x: T) => U)[]

Returns

(list: readonly T[]) => readonly U[]

Type Parameters

E extends Evolver
V extends Evolvable<E>

Parameters

rules: E
obj: V

Returns

Evolve<V, E>

Type Parameters

E extends Evolver

Returns

<V extends Evolvable<E>>(obj: V) => Evolve<V, E>