Runs the computation with the identity from R to R.
R
The computation.
The running result.
import { evalCont, pure } from "./cont.ts";import { assertEquals } from "../deps.ts";const actual = evalCont<number>(pure(42));assertEquals(actual, 42); Copy
import { evalCont, pure } from "./cont.ts";import { assertEquals } from "../deps.ts";const actual = evalCont<number>(pure(42));assertEquals(actual, 42);
Generated using TypeDoc
Runs the computation with the identity from
R
toR
.