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.

Examples

open allclose all

Basic Examples  (2)

Create a string of 50 a's:

Repeat a triplet of characters 10 times:

Truncate after a fixed length:

Neat Examples  (1)

"Create" a telomere:

Introduced in 2015
 (10.1)