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

left

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

Create a SyncEither that always fails with the given error.

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

const failure = left("Something went wrong");
function left<A = never, B = never>(left: B): SyncEither<B, A>;
§
left<A = never, B = never>(left: B): SyncEither<B, A>
[src]

§Type Parameters

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

§Parameters

§
left: B
[src]

§Return Type