Module

x/rambda/index.d.ts>ap

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

It takes a list of functions and a list of values. Then it returns a list of values obtained by applying each function to each value.

Parameters

fns: Array<(a: T) => U>[]
vs: T[]

Parameters

fns: Array<(a: T) => U>

Returns

(vs: T[]) => U[]

Parameters

fn: (r: R, a: A) => B
fn1: (r: R) => A

Returns

(r: R) => B