Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

wrap

import { wrap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/state.ts";

Construct a State<E, A> from a static value A.

@example
import * as S from "./state.ts";

const state = S.wrap(1);

const result = state(null); // [1, null]
function wrap<A, E = unknown>(a: A): State<E, A>;
§
wrap<A, E = unknown>(a: A): State<E, A>
[src]

§Type Parameters

§
E = unknown
[src]

§Parameters

§Return Type