Companion

object Companion

Functions

Link copied to clipboard
inline fun <V> of(function: () -> V): Result<V, Exception>

Invokes a function and wraps it in a Result, returning an Err if an Exception was thrown, otherwise Ok.