use nightingale; fn main() { let counts = [2, 6]; let edges = [0, 10, 30]; let probability = 0.5; let threshold = 20.0; let result = nightingale_quantile(counts, edges, probability, threshold); if len(result) == 0 { println!("invalid"); return; } let mut i = 0; while i < len(result) { println!(at(result, i)); i += 1; } }