or_else_get
Description:
If a value is present, returns the value, otherwise returns the result produced by the supply function.
Parameters:
supplier |
the supply function |
Returns:
the value if present, otherwise the result produced by the supply function |