Module

x/rambda/mod.ts>evolve

Faster and smaller alternative to Ramda
Latest
function evolve
import { evolve } from "https://dotland.deno.dev/x/rambda@9.4.1/mod.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: ((x: T) => U)[]
list: T[]

Parameters

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

Returns

(list: T[]) => 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>