Applies the given mapping function if the value is present.
| map_func |
The mapping function. |
|
If the value is present, the mapping function will be applied to the value, and an Optional containing the result is returned. Otherwise, returns an empty Optional. |