• Runs the computation with the identity from R to R.

    Type Parameters

    • R

    Parameters

    • cont: Cont<R, R>

      The computation.

    Returns R

    The running result.

    Examples

    import { evalCont, pure } from "./cont.ts";
    import { assertEquals } from "../deps.ts";

    const actual = evalCont<number>(pure(42));
    assertEquals(actual, 42);

Generated using TypeDoc