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

Create a SyncEither that always succeeds with the given value.

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

const success = right(42);
const result = success(); // Right(42)
function right<A = never, B = never>(right: A): SyncEither<B, A>;
§
right<A = never, B = never>(right: A): SyncEither<B, A>
[src]

§Type Parameters

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

§Parameters

§
right: A
[src]

§Return Type