parameters: (self)
return_statement: return next(iter)
docstring: :rtype: int
docstring_summary: :rtype: int
docstring_tokens: : rtype : int
function: def next(self):
          """
          :rtype: int
          """
          len, iter = self.q.popleft()
          if len > 1:
              self.q.append((len-1, iter))
          return next(iter)
function_tokens: def next ( self ) : len , iter = self . q . popleft ( ) if len > 1 : self . q . append ( ( len - 1 , iter ) ) return next ( iter )