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

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

Parameters

fati: (a: A) => AsyncEither<J, I>

Returns

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