Skip to main content
Module

x/hkts/datum.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/datum.ts";

Destructors


type

<A, B>(
onInitial: () => B,
onPending: () => B,
onReplete: (a: A) => B,
onRefresh: (a: A) => B,
) => unknown