RosettaCodeData/Task/Repeat-a-string/Rust/repeat-a-string-2.rs

2 lines
36 B
Rust

"ha".repeat(5); // ==> "hahahahaha"