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

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

public interface IAggregator<T, TResult, TSelf> where TSelf : IAggregator<T, TResult, TSelf>
Accumulates values by returning a replacement state from Add and exposing the aggregate through Result.
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.