let mut park = playground::new(); park.add_swing("blue_swing"); let advice = |swing: &mut swing| { swing.pass_over_pre_existing_issues(); swing.renew(); }; for swing in park.swings.iter_mut() { advice(swing); } println!("following the advice to pass over pre-existing concerns and renew has masked the swings in joy and positivity!");