Function std.range.primitives.popFrontN
popFrontN eagerly advances r itself (not a copy) up to n times
    (by calling r). popFrontN takes r by ref,
    so it mutates the original range. Completes in Ο(1) steps for ranges
    that support slicing and have length.
    Completes in Ο(n) time for all other ranges.
						
				size_t popFrontN(Range)
				(
				
				  ref Range r,
				
				  size_t n
				
				)
				
				if (isInputRange!Range);
						
					
				popBackN behaves the same as popFrontN but instead removes
    elements from the back of the (bidirectional) range instead of the front.
Returns
How much r was actually advanced, which may be less than n if
    r did not have at least n elements.
See Also
std, std
Example
int[] a = [ 1, 2, 3, 4, 5 ];
aExample
import stdExample
int[] a = [ 1, 2, 3, 4, 5 ];
aExample
import stdAuthors
Andrei Alexandrescu, David Simcha, and Jonathan M Davis. Credit for some of the ideas in building this module goes to Leonardo Maffi.