use cashladder; fn main() { let opening = 20.0; let flows = [-30, 15]; let result = cashladder_balance(opening, flows); if len(result) == 0 { println!("invalid"); return; } let mut i = 0; while i < len(result) { println!(at(result, i)); i += 1; } }