Class CollectionFoldExtensionMethods
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Collections.dll
The C# surface of the fold over a collection. A fold gives one cell from the items that a collection holds. A total of a balance and a count of the items of a view are two of them.
[PublicAPI]
public static class CollectionFoldExtensionMethods
- Inheritance
-
CollectionFoldExtensionMethods
- Inherited Members
Methods
- FoldByIdentity<TKey, TIdentity, TState, TAccumulate>(ReactiveCollection<TKey, TIdentity, TState>, Func<TIdentity, TAccumulate>, TAccumulate, Func<TAccumulate, TAccumulate, TAccumulate>, Func<TAccumulate, TAccumulate, TAccumulate>)
Folds the identity of each item into one cell, and keeps that cell current as the collection adds and removes items.
- Fold<TKey, TIdentity, TState, TAccumulate>(ReactiveCollection<TKey, TIdentity, TState>, Func<TIdentity, TState, TAccumulate>, TAccumulate, Func<TAccumulate, TAccumulate, TAccumulate>, Func<TAccumulate, TAccumulate, TAccumulate>)
Folds each item into one cell, and keeps that cell current as the collection changes.