Registry / Library

library · v0.1.0
QueryDepth
Validate a preorder field-depth trace from an expanded query plan.
Use QueryDepth
use vendor::querydepth::querydepth;
Run the example
nest demo querydepth@0.1.0
blyxc native-run querydepth-demo/main.blyx
Example source and expected output
use vendor::querydepth::querydepth;
fn main() {
let depths = [1, 2, 3, 2, 1];
let result = querydepth_shape(depths);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
3
2
5
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | 2caf0cebba | a18a8d3efca3cc371d7ce018ff3b7371001b6329aea267fc265dd13733a3b1ff |