Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/traversable.ts

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
import * as fun from "https://deno.land/x/fun@v2.0.0/traversable.ts";

Traversable is a structure that encapsulates the idea of iterating through data and collecting it into another structure. This can be as simple as turning an Array<Option> into Option<Array> or as complicated as creating all combinations of numbers in three Array.

Interfaces

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