Table of Contents

Class LazyExtensionMethods

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

The operations available on a Lazy<T>.

[PublicAPI]
public static class LazyExtensionMethods
Inheritance
LazyExtensionMethods
Inherited Members

Remarks

Everything here is itself lazy: the result is a Lazy<T> which forces its inputs only when a read forces the result.

Methods

Lift<T1, T2, TResult>(Lazy<T1>, Lazy<T2>, Func<T1, T2, TResult>)

Lifts a function into lazy input values. The Lazy from this call has the value of that function on the values of the lazy inputs.

Lift<T1, T2, T3, TResult>(Lazy<T1>, Lazy<T2>, Lazy<T3>, Func<T1, T2, T3, TResult>)

Lifts a function into lazy input values. The Lazy from this call has the value of that function on the values of the lazy inputs.

Lift<T1, T2, T3, T4, TResult>(Lazy<T1>, Lazy<T2>, Lazy<T3>, Lazy<T4>, Func<T1, T2, T3, T4, TResult>)

Lifts a function into lazy input values. The Lazy from this call has the value of that function on the values of the lazy inputs.

Map<T, TResult>(Lazy<T>, Func<T, TResult>)

Maps the lazy input value with the given function. The Lazy from this call has the value of that function on the value of the lazy input.