Enhanced C#
Language of your choice: library documentation
Loyc.Collections.AListStatisticTracker< K, T, TSummary > Class Template Reference

This class efficiently lets you keep track of simple commutative statistics (such as total, average, sum of squares, and min/max) derived from the items of AList<T> and its variants (BList, BDictionary, and BMultiMap). More...


Source file:

Remarks

This class efficiently lets you keep track of simple commutative statistics (such as total, average, sum of squares, and min/max) derived from the items of AList<T> and its variants (BList, BDictionary, and BMultiMap).

Note: this class relies on the "tree observer" feature of ALists, but SparseAList doesn't support tree observers as of 2020/01.

Typically a statistic tracker is created by calling an extension method on AList, BList, etc.