OT: Interesting, JS has a .shift method for arrays which is basically:
{ auto v = arr.front; arr.popFront; return v; }Do we have something equivalent in Phobos? It seems useful.
OT: Interesting, JS has a .shift method for arrays which is basically:
{ auto v = arr.front; arr.popFront; return v; }Do we have something equivalent in Phobos? It seems useful.