toResult

fun <T : Any, V> T.toResult(): Result<T, V>(source)
fun <T : Any, U : Any, V> T.toResult(transform: (T) -> U): Result<U, V>(source)