Method in prelude · Option auto-imported

Option::or

pub fn or(Option<T> other) -> Option<T>
Source: compiler/src/prelude/core.hy

This option if it is Some, otherwise other.

Called on a Option value as value.or(…).

Parameters#

NameType
otherOption<T>

Returns#

Option<T>

See also#

↑ ↓ navigate ↵ open