Option::is_some
pub fn is_some() -> bool
Source: compiler/src/prelude/core.hy True when this is Some.
Called on a Option value as value.is_some(…).
Returns#
bool
See also#
OptionOption::is_none: True when this isNone.Option::unwrap_or: The value, orfallbackwhenNone.Option::unwrap_or_else: The value, or the result offwhenNone.Option::map:Some(f(value)), orNone.Option::map_or:f(value), orfallbackwhenNone.Option::and_then:f(value)(itself anOption), orNone.Option::or: This option if it isSome, otherwiseother.