Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fun/optics.ts>traverse

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function traverse
import { traverse } from "https://deno.land/x/fun@v2.0.0-alpha.6/optics.ts";

Traverse a U using a Traversable for U. By construction get for a Fold will return an array of values.

Returns

<U extends Tag, S, A, B, C, D, E>(first: Optic<U, S, $<T, [A, B, C], [D], [E]>>) => Optic<Align<U, FoldTag>, S, A>