HyperMath

Repeating Strings

Repeating Strings

Previous topic Next topic No expanding text in this topic  

Repeating Strings

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

StrRepeat(s,n)

or

string.rep(s, n)

Generates a string that is n copies of the string passed, concatenated together.

> print(StrRepeat("HyperMath ",3))

HyperMath HyperMath HyperMath

> print(StrRepeat("HyperMath \n",3))

HyperMath

HyperMath

HyperMath