Table of Contents

Method Filter

Namespace
SodaFlow
Assembly
SodaFlow.dll

Filter<T>(Stream<T>, Func<T, bool>)

    Return a stream that only outputs events for which the predicate returns

    <pre><code class="lang-csharp">true</code></pre>

.

public static Stream<T> Filter<T>(this Stream<T> s, Func<T, bool> predicate)

Parameters

s Stream<T>

The stream.

predicate Func<T, bool>

The predicate used to filter the stream.

Returns

Stream<T>
    A stream that only outputs events for which the predicate returns

    <pre><code class="lang-csharp">true</code></pre>

.

Type Parameters

T

The type of the stream.