Methods

getΒΆ

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

Get hash value by key or dflt if it does not exist

Returns

Any

Example

h = {"a": 1}
h.get("a", 10)  # 1
h.get("b", 10)  # 10