1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Just macros #![allow(unused_imports)] /// Macro for joining multiple iterators #[macro_export] macro_rules! product { ($first:ident, $($next:ident),*) => ( $first.iter() $( .flat_map(|e| std::iter::repeat(e) .zip($next.iter())) )* ); } pub(crate) use product;