// Find the largest contiguous sum in a numeric signal, allowing the empty slice with sum zero. pub fn max_slice_sum(items: vector) -> f64 { let mut ending = 0.0; let mut best = 0.0; let mut i = 0; while ibest { best = ending; } i += 1; } best }