repeated

fun <T> List<T>.repeated(times: Int): List<T>

Returns a list containing this list's elements repeated times times in sequence.

Zero times or an empty receiver yields an empty list.

Throws