Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

hashMap

🌌hashMap

hashMap -- an immutable hash map from keys HK to values V

calculate the index of k within contents array in case of no conflict

in case of a collision at given position,
return the next alternative position to check

get the value k is mapped to

redefines map.index [ ]:
get the value k is mapped to, or nil if none.

get a stream of all key/value pairs in this map

redefines map.items:
get a sequence of all key/value pairs in this map

number of entries in this map

redefines map.size:
number of entries in this map