Skip to main content
Module

x/fun/traversable.ts>Traversable

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
interface Traversable
implements Mappable<U>, Foldable<U>, Hold<U>
import { type Traversable } from "https://deno.land/x/fun@v2.0.0/traversable.ts";

A Traversable structure extends Mappable and Foldable. It contains the methods map, fold, and traverse.

Properties

readonly
traverse: <VRI extends Kind>(A: Applicable<VRI>) => <A, I, J, K, L, M>(faui: (a: A) => $<VRI, [I, J, K], [L], [M]>) => <B, C, D, E>(ta: $<U, [A, B, C], [D], [E]>) => $<VRI, [$<U, [I, B, C], [D], [E]>, J, K], [L], [M]>