Registry / Library

library · v0.1.1
Polyline Taxicab
Measure total Manhattan travel along a rectilinear path. Mismatched coordinate arrays return minus one.
Use Polyline Taxicab
use vendor::polyline_taxicab::polyline_taxicab;
Run the example
nest demo polyline_taxicab@0.1.1
blyxc native-run polyline_taxicab-demo/main.blyx
Example source and expected output
use vendor::polyline_taxicab::polyline_taxicab;
fn main() {
println!(polyline_taxicab([0,3,1],[2,2,5]));
}
Expected output
8
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 4c4a846173 | c52d8a74f5374d2713c9c45f69409d431774558f0f34182192e0ade275483cca |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | c1b48cfc2709eff1a9987125b894cf463e327f7739ec68ce72db5ca9133582f5 |