Table of Contents

Method WithCaptures

Namespace
SodaFlow
Assembly
SodaFlow.dll

WithCaptures<TCaptures>(Func<LoopedBehavior<T>, (Behavior<T> Behavior, TCaptures Captures)>)

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

[Pure]
public (Behavior<T> Behavior, TCaptures Captures) WithCaptures<TCaptures>(Func<LoopedBehavior<T>, (Behavior<T> Behavior, TCaptures Captures)> f)

Parameters

f Func<LoopedBehavior<T>, (Behavior<T> Behavior, TCaptures Captures)>

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

Returns

(Behavior<T> Behavior, TCaptures Captures)

A value tuple containing the resulting behavior and captures.

Type Parameters

TCaptures

The type of the captures to return.