Registry / Library

library · v0.1.1
Grid Cell Index
Map an in-bounds integer cell into a zero-based row-major array with explicit dimension checks.
Use Grid Cell Index
use vendor::grid_cell_index::grid_cell_index;
Run the example
nest demo grid_cell_index@0.1.1
blyxc native-run grid_cell_index-demo/main.blyx
Example source and expected output
use vendor::grid_cell_index::grid_cell_index;
fn main() {
println!(grid_cell_index(2,1,4,3));
}
Expected output
6
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 693fa82948 | 4126559e8b0a25f3e425ae3c51b5cbe6dad58f4f25ec5d937352ec2d4b917267 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 96dffa5a532dad1932601801bb2e2f715e32fa224dd66dc66f039fc024e0e6d2 |