use raven; fn main() { let severity = [9, 17, 9, 21, 21]; let threshold = 17.0; let capacity = 2.0; let result = raven_buffer(severity, threshold, capacity); if len(result) == 0 { println!("invalid"); return; } let mut i = 0; while i < len(result) { println!(at(result, i)); i += 1; } }