Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Traversable

import type { Traversable } from "https://raw.githubusercontent.com/baetheus/fun/main/traversable.ts";

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

interface Traversable <U extends Kind> extends Mappable<U>, Foldable<U>, Hold<U> {
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]>;
}

§Type Parameters

§
U extends Kind
[src]

§Extends

§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]>
[src]