A new dynamic array of all values, as returned by the associative array's values function.
RehashingAA!(int[string]) aa; aa["abc"] = 123; aa["def"] = 456; aa["ghi"] = 789; auto values = aa.values; // allocate it once // Order cannot be relied upon foreach (val; [ 123, 456, 789 ]) { import std.algorithm.searching : canFind; assert(values.canFind(val)); }
Wraps the internal associative array's values function.