Skip to main content
Module

x/fun/mod.ts>fn_either.join

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

Flatten nested FnEithers with the same input and left types.

Examples

Example 1

import * as FE from "./fn_either.ts";
import { pipe } from "./fn.ts";

const result = pipe(
  FE.right(FE.right(1)),
  FE.join,
)(null); // Right(1)