arrow-core-data / arrow.core / Try / failed

failed

fun failed(): Try<Throwable>

Inverts this Try. If this is a Failure, returns its exception wrapped in a Success. If this is a Success, returns a Failure containing an UnsupportedOperationException.

Do you like Arrow?

Arrow Org
<