Array2ds is a none-bloated library in rust for rust by rust for handling staticly sized 2d array/grids to run the examples: cargo run --example 'example_name'
```rust
fn testindex() { let mut rng = rand::threadrng(); let n = rng.genrange(1..4096); let r = rng.genrange(1..4096); let c = rng.genrange(1..4096); let arr = Array2d::filledwith(n, r, c); //println!("{:?}", &arr); for _ in 0..70 { let cc = rng.genrange(0..(c - 1)); let rr = rng.genrange(0..(r - 1)); //println!("len: {} rr: {} cc: {}", arr.columncount() * arr.rowcount(), &rr, &cc); //println!("index: {} is [{},{}]",arr.d2indexd1(&[rr,cc]),&rr,&cc); assert_eq!(arr[[rr, cc]], arr[(rr, cc)]); } } ```
MIT