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

right

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

Create a These that represents a complete success.

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

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

§Type Parameters

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

§Parameters

§
right: A
[src]

§Return Type