Skip to main content
Module

x/hkts/these.ts>fold

Functional programming tools: option, either, task, state, optics, etc.
Latest
variable fold
import { fold } from "https://deno.land/x/hkts@v0.0.52/these.ts";

Destructors


type

<E, A, B>(
onLeft: (e: E) => B,
onRight: (a: A) => B,
onBoth: (e: E, a: A) => B,
) => unknown