struct OrderedMap(K, V)
A simple data structure based on the built-in associative array, but with a fixed element order.
V get(K key, lazy V defaultValue = V.init) const
Safely returns the value associated with the given key.
If the key does not exist, returns defaultValue.
private V[K] map
Underlying associative array for key-value storage.
private K[] keyArray
Array of keys preserving insertion order.