Hash functions
keys
Converts the hash to a list of keys stored in the hash.
values
Converts the hash to a list of values stored in the hash.
iter
Converts the hash to a list of key & value tuples that are stored in the hash. When used inside a for loop, calling iter
is optional.
empty
Returns true if the hash is empty (length 0). blank
and is_empty
are aliases for empty
.
len
Returns the length of the hash, i.e. the number of elements stored in the hash.