map

open override fun <R> map(function: (T) -> R): Optional.Some<R>

Applies function to value, returning a Some holding the result.