Skip to main content
Module

x/fun/mod.ts>filterable.partitionMap

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function filterable.partitionMap
import { filterable } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { partitionMap } = filterable;

Type Parameters

U extends Kind
V extends Kind

Parameters

M: Mappable<U>

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]>>