Methods
dflt
ΒΆ
dflt(i:
NormalTypeInstance
, k:
Any
, v:
Any
)
Set an attribute in an instance if it's not already set
Source:
stdlib.ngs:637
Returns
Attribute value, the already-existed or new.
Example
mysomething.dflt(k, []).push(elt)