kotlin-result
1.1.14
kotlin-result
/
com.github.michaelbull.result
/
getErrorOrElse
get
Error
Or
Else
infix inline
fun
<
V
,
E
>
Result
<
V
,
E
>
.
getErrorOrElse
(
transform
:
(
V
)
->
E
)
:
E
Content copied to clipboard
Returns the
error
if this
Result
is
Err
, otherwise the
transformation
of the
value
.