Skip to main content
Module

x/fun/fn_either.ts>left

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function left
import { left } from "https://deno.land/x/fun@v2.0.0/fn_either.ts";

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

Examples

Example 1

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

const leftNumber = left(1);

const result = leftNumber(0); // Left(1);

Type Parameters

B
optional
D = unknown
optional
A = never