View on GitHub

SpheroidScript

//Spheroid Script/spheroid/repeat

repeat

Executes the given function action specified number of times.A zero-based index of current iteration is passed as a parameter to action.

fun repeat(times: Long, action: (Long) -> Unit)