Constructs a GC-allocated series from an associative array. Performs exactly two allocations.
associative array or a pointer to associative array
sorted GC-allocated series.
auto s = [1: 1.5, 3: 3.3, 2: 20.9].series; assert(s.index == [1, 2, 3]); assert(s.data == [1.5, 20.9, 3.3]); assert(s.data[s.findIndex(2)] == 20.9);
assocArray
See Implementation
Constructs a GC-allocated series from an associative array. Performs exactly two allocations.