Table of Contents

Method Apply

Namespace
SodaFlow
Assembly
SodaFlow.dll

Apply<T, TResult>(Behavior<T>, Behavior<Func<T, TResult>>)

Apply a value in a behavior to a function in a behavior. This is the primitive for all function lifting.

public static Behavior<TResult> Apply<T, TResult>(this Behavior<T> b, Behavior<Func<T, TResult>> bf)

Parameters

b Behavior<T>

The behavior.

bf Behavior<Func<T, TResult>>

The behavior containing the function to apply the value to.

Returns

Behavior<TResult>

A behavior whose value is the result of applying the current function in behavior bf to this behavior's current value.

Type Parameters

T

The type of the behavior.

TResult

The type of the result.