Skip to main content
Module

x/fun/mod.ts>async_either.right

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

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