Method in prelude · Option auto-imported

Option::and_then

pub fn and_then<U>(T -> Option<U> f) -> Option<U>
Source: compiler/src/prelude/core.hy

f(value) (itself an Option), or None.

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

Parameters#

NameType
fT -> Option<U>

Returns#

Option<U>

See also#

↑ ↓ navigate ↵ open