toggle menu
kord
0.16.0-SNAPSHOT
common
switch theme
search in API
kord-common
/
dev.kord.common.entity.optional
/
map
map
inline
fun
<
E
:
Any
,
T
:
Any
>
Optional
<
E
>
.
map
(
mapper
:
(
E
)
->
T
)
:
Optional
<
T
>
(
source
)
@
JvmName
(
name
=
"mapNullableOptional"
)
inline
fun
<
E
:
Any
,
T
:
Any
>
Optional
<
E
?
>
.
map
(
mapper
:
(
E
)
->
T
)
:
Optional
<
T
?
>
(
source
)
inline
fun
OptionalInt
.
map
(
mapper
:
(
Int
)
->
Int
)
:
OptionalInt
(
source
)
inline
fun
<
T
:
Any
>
OptionalSnowflake
.
map
(
mapper
:
(
Snowflake
)
->
T
)
:
Optional
<
T
>
(
source
)