Method
OrElse
func OrElse(alternative: () -> Optional<T>) -> Optional<T>
Declaring type: Optional<T>
Namespace: System
Assembly: Raven.Core.dll
Source file: Optional.rvn
Returns this option if it is Some, otherwise returns alternative().
Parameters
| Name | Type | Description |
|---|---|---|
alternative |
() -> Optional<T> |
Return value
Optional<T>