API Browser

Method

UnwrapOrElse

func UnwrapOrElse(factory: () -> T) -> T

Declaring type: Optional<T>
Namespace: System
Assembly: Raven.Core.dll
Source file: Optional.rvn

Returns the contained value or evaluates factory().

Parameters

Name Type Description
factory () -> T

Return value

T