Skip to main content
Module

x/fun/mod.ts>async_either.of

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function async_either.of
import { async_either } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { of } = async_either;

Construct an AsyncEither<B, A> from a value A.

Examples

Example 1

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

const value = AE.of(1);

const result = await value(); // Right(1)

Type Parameters

A
optional
B = never