effect-io-ai

Package: effect
Module: RedBlackTree

RedBlackTree.reduce

Reduce a state over the entries of the tree.

Signature

declare const reduce: { <Z, V, K>(zero: Z, f: (accumulator: Z, value: V, key: K) => Z): (self: RedBlackTree<K, V>) => Z; <Z, V, K>(self: RedBlackTree<K, V>, zero: Z, f: (accumulator: Z, value: V, key: K) => Z): Z; }

Source

Since v2.0.0