Created attachment 1056 [details] initArray It would be nice to have an initializedArray function, which creates and initializes an arbitrarily-sized array with a *specific* initializer. An implementation is provided in the attachment.
Created attachment 1057 [details] initArray2 Rebased initArry to dsimcha's initialize() function from his std.allocator package.
Created attachment 1058 [details] 3rd version This one adds initialization by another array's elements. Basically it's a deep-copy.
Hmm.. I'm not sure about the use-case of this. It combines some stuff with an optional allocator but that should ideally be part of the new allocator stuff in the works by Andrei. The provided example implementation isn't very noteworthy though. Closing this.