<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.3.0" />

ReactiveUI.Primitives.Advanced.IAggregator<T, TResult, TSelf>

public interface IAggregator<T, TResult, TSelf> where TSelf : IAggregator<T, TResult, TSelf>
An immutable value-type accumulator for a single-source aggregate sink: each Add folds a value into the running state and returns the next accumulator, while Result yields the terminal value. Implemented as a readonly record struct so AggregateWitness<T, U, V> can advance it through a constrained, devirtualized, allocation-free call rather than an interface or delegate dispatch.
TResult Result { get; }

Gets the terminal result computed from the values folded so far.

TSelf Add(T value)

Folds value into the running state and returns the next accumulator.