Methods

dfltΒΆ

dflt(h:Hash, k:Any, v:Any)

Set an key in a Hash if it's not already set
Source: stdlib.ngs:1865

Returns

Hash value, the already-existed or new.

Example

Myhash.dflt(k, []).push(elt)