Maps the value of a 'some' Option using a predicate function. If the Option is 'none', it returns a 'none' Option.
The Option to map.
The function to apply to the value if the option is 'some'.
A new Option with the mapped value, or a 'none' Option.
Maps the value of a 'some' Option using a predicate function. If the Option is 'none', it returns a 'none' Option.