Returns the first element in the range r and pops then next
range
r.front
/
const(int)[] a = [1, 2, 3]; assert(eatOne(a) == 1); assert(eatOne(a) == 2); assert(eatOne(a) == 3); assert(a.empty); assert(eatOne(a, -1) == -1); assert(eatOne(a) == int.init);
Returns the first element in the range r and pops then next