Method in prelude · Result auto-imported

Result::unwrap_or_else

pub fn unwrap_or_else(E -> T f) -> T
Source: compiler/src/prelude/core.hy

The Ok value, or f applied to the error.

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

Parameters#

NameType
fE -> T

Returns#

T

See also#

↑ ↓ navigate ↵ open