either

inline fun <Error, A> either(block: Raise<Error>.() -> A): Either<Error, A>(source)

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

This function re-throws any exceptions thrown within the Raise block.

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