StringMap!double map; assert(map.values == []); map["c"] = 4.0; assert(map.values == [4.0]); map["a"] = 3.0; assert(map.values == [4.0, 3.0]); map.values[0]++; assert(map.values == [5.0, 3.0]); map.remove("c"); assert(map.values == [3.0]); map.remove("a"); assert(map.values == []); map["c"] = 4.0; assert(map.values == [4.0]);
Returns a dynamic array, the elements of which are the values in the associative array. Doesn't allocate a new copy.
Complexity: O(1)