Skip to main content
Module

x/fun/mod.ts>these.match

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

Parameters

onLeft: (b: B) => O
onRight: (a: A) => O
onBoth: (b: B, a: A) => O

Returns

(ta: These<B, A>) => O