Method
Flatten
func Flatten<T>() -> Optional<T>
Declaring type: OptionalNestedOperators
Module: System
Assembly: System.Runtime.dll
Extension from OptionalNestedOperators.Flatten
Removes one Optional layer; an absent outer or inner option becomes None.
Parameters
| Name | Type | Description |
|---|---|---|
self |
Optional<Optional<T>> | The source outcome or iterable on which the extension operates. |
Return value
Optional<T>