Higher order function returning a function that performs the andThen
method on the provided Result.
The returned function maps the current Result to a new one if it is Ok.
Higher order function returning a function that performs the asNullable
method on the provided Result.
The returned function maps the Result so the Ok
value is wrapped in an Option based on its presence.
Creates a new Err instance.
Creates a new Error
with the provided message and wraps it in an Err
.
Higher order function returning a function that performs the isErr
method on the provided Result.
The returned function checks if the value is Err.
Checks if the value is an instance of the Result jonad.
Higher order function returning a function that performs the isOk
method on the provided Result.
The returned function checks if the value is Ok.
Higher order function returning a function that performs the map
method on the provided Result.
The returned function maps the value if it is an Ok.
Higher order function returning a function that performs the mapErr
method on the provided Result.
The returned function maps the error if it is an Err.
Creates a new Ok instance.
Higher order function returning a function that performs the someOrNone
method on the provided Result.
The returned function maps the Result into an Option.
Transposes a Result of an Option into an Option of a Result.
Higher order function returning a function that performs the valueOr
method on the provided Result.
The returned function returns the value if it is an Ok, otherwise a default value.
Result-related utilities.