Method in prelude · Result auto-imported

Result::and_then

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

f(value) (itself a Result), or the same error.

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

Parameters#

NameType
fT -> Result<U, E>

Returns#

Result<U, E>

See also#

↑ ↓ navigate ↵ open