Skip to main content
Module

x/fun/iterable.ts>partition

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

Type Parameters

A
B extends A

Parameters

refinement: (a: A) => a is B

Returns

(ua: Iterable<A>) => Pair<Iterable<A>, Iterable<B>>

Parameters

predicate: (a: A) => boolean

Returns

(ua: Iterable<A>) => Pair<Iterable<A>, Iterable<A>>