Skip to main content
Module

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

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

Examples

Example 1

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

const left = AE.left(1);

const result = await left(); // Left(1);

Type Parameters

B
optional
A = never