Skip to main content
Module

x/fun/filterable.ts>partitionMap

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

Type Parameters

U extends Kind
V extends Kind

Returns

<A, X, Y>(fai: (a: A) => Either<X, Y>) => <B = never, C = never, D = unknown, E = unknown, J = never, K = never, L = unknown, M = unknown>(ua: $<U, [$<V, [A, B, C], [D], [E]>, J, K], [L], [M]>) => Pair<$<U, [$<V, [Y, B, C], [D], [E]>, J, K], [L], [M]>, $<U, [$<V, [X, B, C], [D], [E]>, J, K], [L], [M]>>