Function itertools::cons_tuples[][src]

pub fn cons_tuples<I, J>(iterable: I) -> ConsTuples<I::IntoIter, J>
Notable traits for ConsTuples<Iter, ((K, L), X)>
impl<X, Iter, K, L> Iterator for ConsTuples<Iter, ((K, L), X)> where
    Iter: Iterator<Item = ((K, L), X)>, 
type Item = (K, L, X);impl<X, Iter, J, K, L> Iterator for ConsTuples<Iter, ((J, K, L), X)> where
    Iter: Iterator<Item = ((J, K, L), X)>, 
type Item = (J, K, L, X);impl<X, Iter, I, J, K, L> Iterator for ConsTuples<Iter, ((I, J, K, L), X)> where
    Iter: Iterator<Item = ((I, J, K, L), X)>, 
type Item = (I, J, K, L, X);impl<X, Iter, H, I, J, K, L> Iterator for ConsTuples<Iter, ((H, I, J, K, L), X)> where
    Iter: Iterator<Item = ((H, I, J, K, L), X)>, 
type Item = (H, I, J, K, L, X);impl<X, Iter, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((G, H, I, J, K, L), X)> where
    Iter: Iterator<Item = ((G, H, I, J, K, L), X)>, 
type Item = (G, H, I, J, K, L, X);impl<X, Iter, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((F, G, H, I, J, K, L), X)> where
    Iter: Iterator<Item = ((F, G, H, I, J, K, L), X)>, 
type Item = (F, G, H, I, J, K, L, X);impl<X, Iter, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((E, F, G, H, I, J, K, L), X)> where
    Iter: Iterator<Item = ((E, F, G, H, I, J, K, L), X)>, 
type Item = (E, F, G, H, I, J, K, L, X);impl<X, Iter, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((D, E, F, G, H, I, J, K, L), X)> where
    Iter: Iterator<Item = ((D, E, F, G, H, I, J, K, L), X)>, 
type Item = (D, E, F, G, H, I, J, K, L, X);impl<X, Iter, C, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((C, D, E, F, G, H, I, J, K, L), X)> where
    Iter: Iterator<Item = ((C, D, E, F, G, H, I, J, K, L), X)>, 
type Item = (C, D, E, F, G, H, I, J, K, L, X);impl<X, Iter, B, C, D, E, F, G, H, I, J, K, L> Iterator for ConsTuples<Iter, ((B, C, D, E, F, G, H, I, J, K, L), X)> where
    Iter: Iterator<Item = ((B, C, D, E, F, G, H, I, J, K, L), X)>, 
type Item = (B, C, D, E, F, G, H, I, J, K, L, X);
where
    I: IntoIterator<Item = J>, 
Expand description

Create an iterator that maps for example iterators of ((A, B), C) to (A, B, C).