pub fn repeat(subject: &str, times: usize) -> String
Repeats the subject
number of times
.
subject
- The string to repeat.
times
- The number of times to repeat.
use voca_rs::*;
manipulate::repeat("w", 3);
manipulate::repeat("world", 0);
use voca_rs::Voca;
"w"._repeat(3);