Method FromStates
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Core.Collections.dll
FromStates(TKey, Stream<TState>)
Lifts a stream of new states for one fixed key into edits.
public static Stream<CollectionEdit<TKey, TIdentity, TState>> FromStates(TKey key, Stream<TState> statesStream)
Parameters
keyTKeyThe key the states apply to.
statesStreamStream<TState>The stream of new states.
Returns
- Stream<CollectionEdit<TKey, TIdentity, TState>>
The stream of edits.