[−][src]Function iter_num_tools::grid
pub fn grid<T>(range: Range<(T, T)>) -> impl Iterator<Item = (T, T)> where
T: Clone,
Range<T>: Itertools + Iterator<Item = T>,
Creates a grid of 2-tuples over the range of 2-tuples
use iter_num_tools::grid; use itertools::Itertools; let it = grid((0, 0)..(2, 3)); itertools::assert_equal(it, vec![ (0, 0), (0, 1), (0, 2), (1, 0), (1, 1), (1, 2), ]);