Function StackOption & Result
Option Map
This function stack applies a transformation to the value inside the option only when the option contains a value. If the option is empty (i.e., contains no value), the transformation is skipped.
Configuration:
Value: The optional value to apply the transformation to.
Default Value: If a non-nil value type is provided, it will be used as the value before the transformation is applied.
Inside the body of the map function, you can use the value held by the option, which is named uValue
.