iter_cartesian 0.1.0

A Cartesian product iterator with double-ended iteration and O(1) length queries.
Documentation
1
2
3
4
5
6
7
use iter_cartesian::CartesianExt;

fn main() {
    // Every tile coordinate in a 64×64 chunk, in row-major order.
    let loaded: Vec<_> = (0u32..64).cartesian(0u32..64).collect();
    println!("Tiles loaded: {}", loaded.len());
}