Applies the function to transform the result of the computation.
import { evalCont, mapCont, pure } from "./cont.ts";import { assertEquals } from "../deps.ts";const actual = evalCont(mapCont((x: number) => x + 1)(pure(42)));assertEquals(actual, 43); Copy
import { evalCont, mapCont, pure } from "./cont.ts";import { assertEquals } from "../deps.ts";const actual = evalCont(mapCont((x: number) => x + 1)(pure(42)));assertEquals(actual, 43);
Generated using TypeDoc
Applies the function to transform the result of the computation.
Examples