Methods

shiftΒΆ

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

Get a key from a Hash and remove it from the Hash. If they key is not in the Hash, return dflt
Source: stdlib.ngs:1897

Example

h = {}
h.shift("a", 7)  # 7