itertools

Function put_back

Source
pub fn put_back<I>(iterable: I) -> PutBack<I::IntoIter> 
where I: IntoIterator,
Expand description

Create an iterator where you can put back a single item