Skip to main content
Module

x/fun/these.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.10/these.ts";

Parameters

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

Returns

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