On 2/25/11, Jonathan M Davis <[email protected]> wrote: > >> * insert an element in a dyn array > > Same as remove. There's no function for doing it at the moment.
std.array.insert: int[] a = [ 1, 2, 3, 4 ]; a.insert(2, [ 1, 2 ]); assert(a == [ 1, 2, 1, 2, 3, 4 ]); afaik insert was missing from the documentation in the last release (I've reported it), but now it's back in. So maybe that's why nobody knew about it.
