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/sync.ts";

Wrap a value in a Sync computation.

@example
import { wrap } from "./sync.ts";

const syncValue = wrap("Hello");
const result = syncValue(); // "Hello"
function wrap<A>(a: A): Sync<A>;
§
wrap<A>(a: A): Sync<A>
[src]

§Type Parameters

§Parameters

§Return Type