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

Wrap a value in a These as a Right.

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

const wrapped = wrap(42);
console.log(wrapped); // { tag: "Right", right: 42 }
function wrap<A, B = never>(a: A): These<B, A>;
§
wrap<A, B = never>(a: A): These<B, A>
[src]

§Type Parameters

§
B = never
[src]

§Parameters

§Return Type