Table of Contents

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

a Lazy<T>

The lazy input.

f Func<T, TResult>

The function to transform the lazy input value.

Returns

Lazy<TResult>

A lazy value which will give the value of the lazy input value a transformed by the function f.

Type Parameters

T

The type of the lazy input value.

TResult

The type of the lazy return value.