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

Constructs a AsyncEither from a value and wraps it in an inner Left traditionally signaling a failure.

@example
import * as AE from "./async_either.ts";

const left = AE.left(1);

const result = await left(); // Left(1);
function left<B, A = never>(left: B): AsyncEither<B, A>;
§
left<B, A = never>(left: B): AsyncEither<B, A>
[src]

§Type Parameters

§
A = never
[src]

§Parameters

§
left: B
[src]

§Return Type