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)