Skip to main content
Module

x/rimbu/mod.ts>Reducer.Init

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

Ensures that all non-primitive type use lazy initialization to prevent accidental instance sharing.

definition: T extends object | (() => any) ? () => T : T
function Reducer.Init
import { Reducer } from "https://deno.land/x/rimbu@0.10.0/mod.ts";
const { Init } = Reducer;

Returns the contained value for an Init instance.

Parameters

  • the Init value container