Module swim.util
Package swim.util

Interface ReducedMap<K,​V,​U>

    • Method Detail

      • reduced

        U reduced​(U identity,
                  CombinerFunction<? super V,​U> accumulator,
                  CombinerFunction<U,​U> combiner)
        Returns the reduction of this ReducedMap, combining all contained elements with the given accumulator and combiner functions, recomputing only what has changed since the last invocation of reduced. Stores partial computations to accelerate repeated reduction of continuously mutating datasets.