IOption<T>.

Match<TResult>(Func<T, TResult>, TResult) Method

Summary

depending on weither the option holds a value or not the given values are returned.
Namespace
FunctionalSharp.OptionTypes
Containing Type
IOption<T>

Syntax

TResult Match<TResult>(Func<T, TResult> withValue, TResult withoutValue)

Type Parameters

Name Description
TResult

Parameters

Name Type Description
withValue Func<T, TResult>
withoutValue TResult

Return Value

Type Description
TResult