Method Map
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
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.
public static Lazy<TResult> Map<T, TResult>(this Lazy<T> a, Func<T, TResult> f)
Parameters
Returns
- Lazy<TResult>
A lazy value which will give the value of the lazy input value
atransformed by the functionf.
Type Parameters
TThe type of the lazy input value.
TResultThe type of the lazy return value.