Skip to main content
Module

x/rimbu/mod.ts>Reducer.constant

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

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