Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/async_either.ts>match

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

Fold away the inner Either from the AsyncEither leaving us with the result of our computation in the form of a Async

Type Parameters

optional
L = unknown
optional
R = unknown
optional
B = never

Parameters

onLeft: (left: L) => B
onRight: (right: R) => B