Module

x/rambda/rambda.js>evolve

Faster and smaller alternative to Ramda
Go to Latest
function evolve
import { evolve } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

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>