katlib
2.2.7
Katlib
katlib
/
dev.forst.katlib
/
applyIfNotNull
apply
If
Not
Null
inline
fun
<
T
:
Any
,
V
:
Any
>
T
.
applyIfNotNull
(
value
:
V
?
,
block
:
T
.
(
V
)
->
Unit
)
:
T
(
source
)
Applies given
block
if the
value
is not null, supplies non-nullable value to the block as an input.