Skip to main content
Module

x/fun/mod.ts>either.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 either.traverse
import { either } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { traverse } = either;

Type Parameters

V extends Kind

Parameters

A: Applicable<V> & Mappable<V> & Wrappable<V>

Returns

<A, I, J, K, L, M>(faui: (a: A) => $<V, [I, J, K], [L], [M]>) => <B>(ta: Either<B, A>) => $<V, [Either<B, I>, J, K], [L], [M]>