or_else_get


Description:

public G or_else_get (SupplyFunc<G> supplier)

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




2022 vala-language.org