OptionPropagateShortcut<T> extension
Provides the ~
shortcut for functions that return Option to allow propagating
unwrapped None values up the call stack.
- on
-
- Option<
T> Function()
- Option<
Operators
-
operator ~(
) → Option< T> -
Available on Option<
Executes the prefixed function, propagating any unwrapped None() values to the return value of the function.T> Function(), provided by the OptionPropagateShortcut extension