Skip to main content
Module

x/fun/mod.ts>fn_either.left

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

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