repeat

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

Returns a function that repeats the application of this times.