inline fun <V> of(function: () -> V): Result<V, Exception>
Result built from the result of the function
function - returns the success value of the type V, otherwise throws an exception
function