use vendor::martin::martin; fn main() { let budget = 100.0; let stages = [20, 30]; let wait = 10.0; let minimum = 35.0; let status = 14.0; let idempotent = 1.0; let attempts = 1.0; let limit = 3.0; let result = martin_retry(budget, stages, wait, minimum, status, idempotent, attempts, limit); if len(result) == 0 { println!("invalid"); return; } let mut i = 0; while i < len(result) { println!(at(result, i)); i += 1; } }