Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/async_either.ts>right

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

Constructs a AsyncEither from a value and wraps it in an inner Right traditionally signaling a successful computation.

Examples

Example 1

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

const right = AE.right(1);

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

Type Parameters

optional
A = never
optional
B = never