kord
Toggle table of contents
or(map(map(map(map(valueof(ProcessOutputValueSource))))), map(map(map(map(valueof(ProcessOutputValueSource))))))
common
Platform filter
common
Switch theme
Search in API
kord
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.