Table of Contents

Method Map

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

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

Maps the value with the given function when there is one, and gives no value when there is none.

public Maybe<TResult> Map<TResult>(Func<T, TResult> f)

Parameters

f Func<T, TResult>

The function to transform this Maybe<T>.

Returns

Maybe<TResult>

The Maybe<T> which results from transforming this Maybe<T> using f.

Type Parameters

TResult

The type of the maybe result value.