On Sunday, 15 July 2012 at 22:39:47 UTC, Jonathan M Davis wrote:
On Sunday, July 15, 2012 18:24:47 Andrei Alexandrescu wrote:On 7/15/12 6:22 PM, Mehrdad wrote:> On Sunday, 15 July 2012 at 22:03:33 UTC, Jonathan M Davis > wrote:>> auto arr = [10, 22, 19, 4, 6]; >> arr = remove(arr, 3); >> assert(arr == [10, 22, 19, 6]);> > Yeah, the problem is that this reallocates...doesn'tYeah. It just slices.
Ooooooh, I misunderstood what was happening. Thanks to both you & Andrei!
