Hi, peekable from more-itertools only allow peeking an iterator. But sometimes, one may want to take a look at an element, manipulate it, then put it back to the iterator. Is there a class in python that can help do this?
https://pypi.python.org/pypi/more-itertools/ -- Regards, Peng -- https://mail.python.org/mailman/listinfo/python-list