Applies a function that returns an Option to the value of a 'some' Option. This is useful for chaining operations that might return 'none'. If the Option is 'none', it returns a 'none' Option.
The initial Option.
The function to apply to the value if the option is 'some', returning a new Option.
A new Option resulting from the application, or a 'none' Option.
Applies a function that returns an Option to the value of a 'some' Option. This is useful for chaining operations that might return 'none'. If the Option is 'none', it returns a 'none' Option.