So far I've seen it's only possible to define default values on the structs, but there's no possibility in other types. One option would be to add an optional default value to the maybe function, so if a value is not defined or is null, the default is returned.
So far I've seen it's only possible to define default values on the
struct
s, but there's no possibility in other types. One option would be to add an optional default value to themaybe
function, so if a value is not defined or isnull
, the default is returned.