Returns a dynamic array, the elements of which are the values in the associative array. Doesn't allocate a new copy.
The values returned are guaranteed to be in the ordered inserted as long as no key removals followed by at least one key insertion has been performed.
Complexity: O(1)
StringMap!double map; assert(map.byKeyValue == StringMap!double.KeyValue[].init); map["c"] = 4.0; map["a"] = 3.0; assert(map.byKeyValue == [StringMap!double.KeyValue("c", 4.0), StringMap!double.KeyValue("a", 3.0)]);
See Implementation
Returns a dynamic array, the elements of which are the values in the associative array. Doesn't allocate a new copy.
The values returned are guaranteed to be in the ordered inserted as long as no key removals followed by at least one key insertion has been performed.
Complexity: O(1)