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

x/rambda/rambda.js>converge

Faster and smaller alternative to Ramda
Latest
function converge
import { converge } from "https://deno.land/x/rambda@9.4.1/rambda.js";

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: any[]) => any)
fns: ((...x: any[]) => any)[]

Returns

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