True Myth / test-support / unwrap
Function: unwrap()
Call Signature
unwrap<
T
>(maybe
):T
Unwrap the contained Just
value. Throws if maybe
is Nothing
.
Type Parameters
T
T
Parameters
maybe
Maybe
<T
>
Returns
T
Call Signature
unwrap<
T
,E
>(result
):T
Unwrap the contained Ok
value. Throws if result
is an Err
.
Type Parameters
T
T
E
E
Parameters
result
Result
<T
, E
>
Returns
T