'Returns the next element in the iteration without advancing the iterator.
:rtype: int'

def peek(self):

    if (not self.has_peeked_):
        self.has_peeked_ = True
        self.val_ = self.iterator.next()
    return self.val_
