impl_cons_iter!(A, B, C, D, E, F, G, H, I, J, K, L,);
#[derive(Debug, Clone)] pubstruct ConsTuplesFn;
/// An iterator that maps an iterator of tuples like /// `((A, B), C)` to an iterator of `(A, B, C)`. /// /// Used by the `iproduct!()` macro. pubtype ConsTuples<I> = MapSpecialCase<I, ConsTuplesFn>;
/// Create an iterator that maps for example iterators of /// `((A, B), C)` to `(A, B, C)`. pubfn cons_tuples<I>(iterable: I) -> ConsTuples<I::IntoIter> where
I: IntoIterator,
{
ConsTuples {
iter: iterable.into_iter(),
f: ConsTuplesFn,
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.