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
Returns
- Stream<T>
A stream that only outputs events for which the predicate returns <pre><code class="lang-csharp">true</code></pre>.
Type Parameters
TThe type of the stream.