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

Wrap a value in a SyncEither as a Right.

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

const wrapped = wrap("Hello");
const result = wrapped(); // Right("Hello")
function wrap<A = never, B = never>(a: A): SyncEither<B, A>;
§
wrap<A = never, B = never>(a: A): SyncEither<B, A>
[src]

§Type Parameters

§
A = never
[src]
§
B = never
[src]

§Parameters

§Return Type