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

orderedMap

orderedMap

orderedMap -- an immutable map from ordered keys OK to values V

Lookup performance is O(log size) since it uses binary search in a
sorted array. When deterministic performance is desired, an ordered map
should be preferred over a hash map.

performance of creation of the map is in O(n log n) where n is
keys.length.
add mapping from k to v
create a string containing all mappings
entry is an index in ks/vs
get the value k is mapped to, or nil if none.

performance is O(log size).

redefines:

get an array of all key/value pairs in this map

redefines:

number of entries in this map

redefines:

a sorted array of entries of this map