Registry / Library

library · v0.1.1
Stable Rank
Return the zero-based ascending rank of one row, breaking ties by its original index. Invalid indices return minus one.
Use Stable Rank
use vendor::stable_rank::stable_rank;
Run the example
nest demo stable_rank@0.1.1
blyxc native-run stable_rank-demo/main.blyx
Example source and expected output
use vendor::stable_rank::stable_rank;
fn main() {
println!(stable_rank([3,1,3],2));
}
Expected output
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 4833e7c116 | 3921a95503062a0e2cc71d30ed09e42033496f771e6ca8d16121309c7182fa80 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 175983b7c72ea4112f7f419d86d0eae77f4d82c3b48c6c081e572b152f2c7e8e |