let mut joy = vec::new(); fn collect_moments(pre_starting: bool, memos: vec<string>, dogs: vec<string>) -> vec<string> { if pre_starting { memos.iter().for_each(|memo| joy.push(format!("recall the veiled excitement of {} before we even get to the park.", memo))); } dogs.iter().for_each(|dog| joy.push(format!("watching {} tune out the world with pure bliss reminds us to sometimes return to square one and enjoy the simple moments.", dog))); return joy; }