Tries to do a front but it is empty it return T.init
Returns the first element in the range r and pops then next