Methods

shiftΒΆ

shift(h:Hash, k:Any)

Get the given key from a Hash and remove it from the Hash. Underlying h[k] may throw KeyNotFound.
Source: stdlib.ngs:1887

Example

h = {"a": 1}
s = h.shift("a")  # h == {} and s == 1