Table of Contents

Method WithCaptures

Namespace
SodaFlow
Assembly
SodaFlow.dll

WithCaptures<TCaptures>(Func<LoopedStream<T>, (Stream<T> Stream, TCaptures Captures)>)

Loop a stream and return a value tuple containing the resulting stream and captures.

[Pure]
public (Stream<T> Stream, TCaptures Captures) WithCaptures<TCaptures>(Func<LoopedStream<T>, (Stream<T> Stream, TCaptures Captures)> f)

Parameters

f Func<LoopedStream<T>, (Stream<T> Stream, TCaptures Captures)>

A function which takes the stream loop and returns a value tuple containing the resulting stream and captures.

Returns

(Stream<T> Stream, TCaptures Captures)

A value tuple containing the resulting stream and captures.

Type Parameters

TCaptures

The type of the captures to return.