Skip to main content
Module

x/fun/mod.ts>iterable.partition

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

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