Skip to main content
Module

x/fun/mod.ts>traversable.Traversable

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

A Traversable structure extends Mappable and Reducible. It contains the methods map, reduce, and traverse.

Type Parameters

U extends Kind

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]>