Table of Contents

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

upstream ReactiveCollection<TKey, TIdentity, TState>

The collection or view to window.

limit int

How many keys to keep.

Returns

ReactiveCollection<TKey, TIdentity, TState>

A view of that window.

Type Parameters

TKey

The type of the keys.

TIdentity

The type of the immutable part of an item.

TState

The 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

upstream ReactiveCollection<TKey, TIdentity, TState>

The collection or view to window.

limitCell Cell<int>

How many keys to keep.

Returns

ReactiveCollection<TKey, TIdentity, TState>

A view of that window.

Type Parameters

TKey

The type of the keys.

TIdentity

The type of the immutable part of an item.

TState

The type of the mutable part of an item.