hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

default-to

Returns the last value of the specified type, or a default value if the last value is nil.
Parameter
Type
Description
value
T
The default value to use if the last value is nil
type
type
The type of value to retrieve from last value
return
T
Returns the last value if not nil, otherwise returns the default value