repeat

fun <T> T.repeat(): Sequence<T>

Make an iterator that returns element over and over again. Runs indefinitely.


fun <T> T.repeat(count: Int): Sequence<T>

Make an iterator that returns element over and over again. Runs count times.