Skip to main content
Module

x/rimbu/mod.ts>Transformer

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Transformer
Re-export
import { Transformer } from "https://deno.land/x/rimbu@0.14.0/mod.ts";

Variables

Returns a transformer that produces windows/collections of windowSize size, each window starting skipAmount of elements after the previous, and optionally collected by a custom reducer.

Functions

Returns a transformer that returns only those elements from the input that are different to previous element according to the optionally given eq function.

Type Aliases

A Reducer that produces instances of StreamSource.NonEmpty.

type alias Transformer
Re-export
import { type Transformer } from "https://deno.land/x/rimbu@0.14.0/mod.ts";

A Reducer that produces instances of StreamSource.

Type Parameters

T
optional
R = T
definition: Reducer<T, StreamSource<R>>