toggle menu
kresult
0.4.X
0.4.X
0.3.X
0.2.X
0.1.X
common
switch theme
search in API
kresult-core
/
io.kresult.core
/
KResult
/
Companion
Companion
object
Companion
(
source
)
Members
Functions
catch
Link copied to clipboard
@
JvmStatic
inline
fun
<
T
>
catch
(
f
:
(
)
->
T
)
:
KResult
<
Throwable
,
T
>
combine
Link copied to clipboard
fun
<
E
,
T
>
combine
(
first
:
KResult
<
E
,
T
>
,
second
:
KResult
<
E
,
T
>
,
combineFailure
:
(
E
,
E
)
->
E
,
combineSuccess
:
(
T
,
T
)
->
T
)
:
KResult
<
E
,
T
>
Combine two
KResult
instances of same type
from
Nullable
Link copied to clipboard
fun
<
T
>
fromNullable
(
value
:
T
?
)
:
KResult
<
Throwable
,
T
>
fun
<
E
,
T
>
fromNullable
(
value
:
T
?
,
errFn
:
(
)
->
E
)
:
KResult
<
E
,
T
>