use avocet; fn main() { let onhand = 10.0; let holds = [3, 4]; let target = 8.0; let lot = 4.0; let result = avocet_plan(onhand, holds, target, lot); if len(result) == 0 { println!("invalid"); return; } let mut i = 0; while i < len(result) { println!(at(result, i)); i += 1; } }