Option::is_none
pub fn is_none() -> bool
Source: compiler/src/prelude/core.hy True when this is None.
Called on a Option value as value.is_none(…).
Returns#
bool
See also#
OptionOption::is_some: True when this isSome.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.