Module

x/rambda/immutable.d.ts>ap

Faster and smaller alternative to Ramda
Latest
function ap
import { ap } from "https://dotland.deno.dev/x/rambda@9.4.1/immutable.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: readonly ReadonlyArray<(a: T) => U>[]
vs: readonly T[]

Returns

readonly U[]

Parameters

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

Returns

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

Parameters

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

Returns

(r: R) => B