Skip to main content
Module

x/fun/async_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/async_iterable.ts";

Type Parameters

A
B extends A

Parameters

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

Returns

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

Parameters

predicate: (a: A) => boolean

Returns

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