Execute a function, only if a value is NOT present.
Execute an asynchrone function, only if a value is NOT present.
Execute a function only if a value is present. Will not update the value. If you want to update the value use mapValue instead.
Execute an asynchrone function, only if a value is present. Will not update the value. If you want to update the value use mapValueAsync instead.
Get the value if any. Else return a default value.
Whether Maybe has a value or not
Transform the value, if any. If the result of the maping is another Maybe, it will be flatten automatically
transform the value, if any, with an asynchrone operation. If the result of the maping is another Maybe, it will be flatten automatically
Represent a value that may or may not be present