result

inline fun <A> result(block: ResultRaise.() -> A): Result<A>(source)

Runs a computation block using Raise, and return its outcome as Result.

Read more about running a Raise computation in the Arrow docs.