toggle menu
kresult
0.2.X
0.4.X
0.3.X
0.2.X
0.1.X
common
switch theme
search in API
kresult-core
/
io.kresult.core
/
getOrDefault
get
Or
Default
infix inline
fun
<
E
,
T
>
KResult
<
E
,
T
>
.
getOrDefault
(
default
:
(
E
)
->
T
)
:
T
(
source
)
Returns the value of the
Success
side, or the result of the
default
function otherwise
Since
0.2.0