unwrap

fun <V, E> Result<V, E>.unwrap(): V

Unwraps a Result, yielding the value.

Throws

if the Result is an Err, with a message containing the error.