Minix
5.0.0-alpha
module-common
/
dev.racci.minix.api.extensions.collections
/
ifEmpty
if
Empty
inline suspend
fun
<
R
,
T
>
Array
<
T
>
.
ifEmpty
(
crossinline
action
:
suspend
Array
<
T
>
.
(
)
->
R
)
:
Option
<
R
>
inline suspend
fun
<
R
,
C
:
Collection
<
*
>
>
C
.
ifEmpty
(
crossinline
action
:
suspend
C
.
(
)
->
R
)
:
Option
<
R
>
See also
Collection
Utils.
If.
ifEmpty