Expand description
*********** Typical usage ***************
use compound;
fn main() { let percentages = [10., 11., 23., 34.]; let initial_investment: f64 = 1000.00; let balance = compound( &initial_investment, &percentages); println!(“Your balance is {}”, balance ); println!(“The percentages were {:?}”, percentages); }
major change: just noticed that primitives already implement the copy trait and therefore wouldn’t mutate anything