Method Take
- Namespace
- SodaFlow.Collections
- Assembly
- SodaFlow.Collections.dll
Take<TKey, TIdentity, TState>(ReactiveCollection<TKey, TIdentity, TState>, int)
The first limit keys of the upstream, which are the
highest keys of the order and the filter above this stage.
public static ReactiveCollection<TKey, TIdentity, TState> Take<TKey, TIdentity, TState>(this ReactiveCollection<TKey, TIdentity, TState> upstream, int limit) where TKey : notnull where TIdentity : notnull
Parameters
upstreamReactiveCollection<TKey, TIdentity, TState>The collection or view to window.
limitintHow many keys to keep.
Returns
- ReactiveCollection<TKey, TIdentity, TState>
A view of that window.
Type Parameters
TKeyThe type of the keys.
TIdentityThe type of the immutable part of an item.
TStateThe type of the mutable part of an item.
Take<TKey, TIdentity, TState>(ReactiveCollection<TKey, TIdentity, TState>, Cell<int>)
The first keys of the upstream, and that count can change.
public static ReactiveCollection<TKey, TIdentity, TState> Take<TKey, TIdentity, TState>(this ReactiveCollection<TKey, TIdentity, TState> upstream, Cell<int> limitCell) where TKey : notnull where TIdentity : notnull
Parameters
upstreamReactiveCollection<TKey, TIdentity, TState>The collection or view to window.
limitCellCell<int>How many keys to keep.
Returns
- ReactiveCollection<TKey, TIdentity, TState>
A view of that window.
Type Parameters
TKeyThe type of the keys.
TIdentityThe type of the immutable part of an item.
TStateThe type of the mutable part of an item.