Prelude.rep3kaya
Repeat a string
Usage
String rep( String str, Int x )
Arguments
str The string to repeat
x The number of times to repeat it
Overview
Return the string str repeated x times.
-
str = "Abc";
r = rep(str,4); // "AbcAbcAbcAbc"
r = rep(str,1); // "Abc"
r = rep(str,0); // ""
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.