Standard LibraryTypesstringMethodsreplicatedOn this pagereplicated Method of string. replicated(integer n) -> string Creates a new container by replicating the original container n times. Parameters n: The number of times to replicate the container.