[][src]Function voca_rs::manipulate::repeat

pub fn repeat(subject: &str, times: usize) -> String

Repeats the subject number of times.

Arguments

Example

use voca_rs::*;
manipulate::repeat("w", 3);
// => "www"
manipulate::repeat("world", 0);
// => ""
use voca_rs::Voca;
"w"._repeat(3);
// => "www"