Is there an easy way to do the following (from Python) in Rust?
>>> print (\"Repeat\" * 4) RepeatRepeatRepeatRepeat
I\'m starting to l
This one doesn't use Iterator::map but Iterator::fold instead:
Iterator::map
Iterator::fold
fn main() { println!("{:?}", (1..5).fold(String::new(), |b, _| b + "Repeat")); }