Skip to main content
Module

x/fun/mod.ts>async_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 async_either.left
import { async_either } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { left } = async_either;

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