Skip to main content
Module

x/fun/async_either.ts>wrap

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

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

Examples

Example 1

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

const value = AE.wrap(1);

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

Type Parameters

A
optional
B = never