Method
ToIterable
func ToIterable<T>() -> Iterable<T>
Declaring type: OptionalOperators
Module: System
Assembly: System.Runtime.dll
Extension from OptionalOperators.ToIterable
Returns an iterable containing the successful value, or an empty iterable for absence or error.
Parameters
| Name | Type | Description |
|---|---|---|
self |
Optional<T> | The source outcome or iterable on which the extension operates. |
Return value
Iterable<T>