times

operator fun String.times(n: Int): String

It simplifies the repetition of a string using the times(*) operator.

Return

a string containing the original string repeated the specified number of times.

Parameters

n

the number of times the string should be repeated.

Sources

Link copied to clipboard