Skip to main content
Module

x/ramda/mod.ts>promap

:ram: Practical functional Javascript
Latest
variable promap
import { promap } from "https://deno.land/x/ramda@v0.27.2/mod.ts";

Takes two functions as pre- and post- processors respectively for a third function, i.e. promap(f, g, h)(x) === g(h(f(x))).

Dispatches to the promap method of the third argument, if present, according to the FantasyLand Profunctor spec.

Acts as a transducer if a transformer is given in profunctor position.