Skip to main content

StringRepeat

StringRepeat["str",n] creates a string consisting of "str" repeated n times.

StringRepeat["str",n,max] creates a string consisting of up to n copies of "str", truncated to be of maximum total length at most max.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.