Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/core/mod.ts>Reducer.constant

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function Reducer.constant
import { Reducer } from "https://deno.land/x/rimbu@1.2.1/core/mod.ts";
const { constant } = Reducer;

Returns a Reducer that always outputs the given value, and does not accept input values.