Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>either.flatmapFirst

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

Type Parameters

A
optional
I = never
optional
J = never

Parameters

faui: (a: A) => Either<J, I>

Returns

<B = never>(ta: Either<B, A>) => Either<B | J, A>