repeat

inline fun repeat(times: UInt, action: (UInt) -> Unit)(source)

Runs the action the times number of times providing arguments 0u, 1u, ..., times-1u consequently into it.

It's a copy of repeat from Kotlin stdlib but for UInt argument.