Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/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.13.1/core/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.13.1/core/mod.ts";

A Reducer that produces instances of StreamSource.

Type Parameters

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