toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-common
/
dev.kord.common.entity.optional
/
flatMap
flat
Map
inline
fun
<
E
:
Any
,
T
:
Any
>
Optional
<
E
>
.
flatMap
(
mapper
:
(
E
)
->
Optional
<
T
>
)
:
Optional
<
T
>
(
source
)
Applies the
mapper
to the optional if it is a
Value
, returns the same optional otherwise.