Skip to main content
Module

x/fae/mod.ts>liftN

A functional module for Deno inspired from Ramda.
Latest
variable liftN
import { liftN } from "https://deno.land/x/fae@v1.1.1/mod.ts";

Lifts fn to a specified arity. The returned function applies the fn on arity number of lists in all possible combination of elements of the lists passe. The result is accumulated in a list

 const add2 = Fae.liftN(3, (...args: number[]) => R.sum(args))
 add2([1,2,3], [1,2,3], [1]); //=> [3, 4, 5, 4, 5, 6, 5, 6, 7]

type

LiftN