1
 2
 3
 4
 5
 6
 7
 8
 9
10
mod lerp;
mod arange;

pub use lerp::*;
pub use arange::*;

use itertools::Itertools;
pub fn grid((w, h): (usize, usize)) -> impl Iterator<Item=(usize, usize)> {
    (0..w).cartesian_product(0..h)
}