On Wednesday, 25 June 2014 at 14:17:50 UTC, Meta wrote:
Then to "pop" the first element, just do 'arr = arr[1..$]'.

Or import std.array to get the range primitives for slices:

import std.array;

void main()
{
  auto arr = [1, 2, 3, 4];
  arr.popFront();
  assert(arr.front == 2);
}

Reply via email to