Skip to main content
Module

x/fun/fn_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/fn_either.ts";

Create a FnEither that always returns a Right(A).

Examples

Example 1

import { right } from "./fn_either.ts";

const rightNumber = right(1);

const result = rightNumber(null); // Right(1);

Type Parameters

A
optional
D = unknown
optional
B = never