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

x/rambda/mod.ts>evolve

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