Method Lift
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
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.
public static Lazy<TResult> Lift<T1, T2, TResult>(this Lazy<T1> a, Lazy<T2> b, Func<T1, T2, TResult> f)
Parameters
aLazy<T1>The first lazy input.
bLazy<T2>The second lazy input.
fFunc<T1, T2, TResult>The function to transform the lazy input value.
Returns
- Lazy<TResult>
A lazy value which will give the value of the lazy input values
aandbtransformed by the functionf.
Type Parameters
T1The type of the first lazy input value.
T2The type of the second lazy input value.
TResultThe type of the lazy return value.
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.
public static Lazy<TResult> Lift<T1, T2, T3, TResult>(this Lazy<T1> a, Lazy<T2> b, Lazy<T3> c, Func<T1, T2, T3, TResult> f)
Parameters
aLazy<T1>The first lazy input.
bLazy<T2>The second lazy input.
cLazy<T3>The third lazy input.
fFunc<T1, T2, T3, TResult>The function to transform the lazy input value.
Returns
- Lazy<TResult>
A lazy value which will give the value of the lazy input values
a,b, andctransformed by the functionf.
Type Parameters
T1The type of the first lazy input value.
T2The type of the second lazy input value.
T3The type of the third lazy input value.
TResultThe type of the lazy return value.
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.
public static Lazy<TResult> Lift<T1, T2, T3, T4, TResult>(this Lazy<T1> a, Lazy<T2> b, Lazy<T3> c, Lazy<T4> d, Func<T1, T2, T3, T4, TResult> f)
Parameters
aLazy<T1>The first lazy input.
bLazy<T2>The second lazy input.
cLazy<T3>The third lazy input.
dLazy<T4>The fourth lazy input.
fFunc<T1, T2, T3, T4, TResult>The function to transform the lazy input value.
Returns
- Lazy<TResult>
A lazy value which will give the value of the lazy input values
a,b,c, anddtransformed by the functionf.
Type Parameters
T1The type of the first lazy input value.
T2The type of the second lazy input value.
T3The type of the third lazy input value.
T4The type of the fourth lazy input value.
TResultThe type of the lazy return value.