Summary
performs the withvalue function to get a value of TResult.
- Namespace
- FunctionalSharp
.OptionTypes - Containing Type
- Some
<T>
Syntax
public TResult Match<TResult>(Func<T, TResult> withValue, TResult withoutValue)
Type Parameters
| Name | Description |
|---|---|
| TResult |
Parameters
| Name | Type | Description |
|---|---|---|
| withValue | Func |
|
| withoutValue | TResult |
Return Value
| Type | Description |
|---|---|
| TResult |
