Module

x/rambda/immutable.d.ts>converge

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

Accepts a converging function and a list of branching functions and returns a new function. When invoked, this new function is applied to some arguments, each branching function is applied to those same arguments. The results of each branching function are passed as arguments to the converging function to produce the return value.

Parameters

after: ((...a: readonly any[]) => any)
fns: readonly ((...x: readonly any[]) => any)[]

Returns

(...y: readonly any[]) => any