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

Create a FnEither that always returns a Left(B).

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

const leftNumber = left(1);

const result = leftNumber(0); // Left(1);
function left<B, D = unknown, A = never>(left: B): FnEither<D, B, A>;
§
left<B, D = unknown, A = never>(left: B): FnEither<D, B, A>
[src]

§Type Parameters

§
D = unknown
[src]
§
A = never
[src]

§Parameters

§
left: B
[src]

§Return Type