loop

inline fun loop(start: Int, end: Int, action: (index: Int) -> Unit)

Implementation standard loop: for(int i = start; i <end; i++)

Parameters

start

starting index

end

ending index


inline fun loop(start: Int, end: Int, step: Int, action: (index: Int) -> Unit)

Implementation standard loop: for(int i = start; i <end; i += step)

Parameters

start

starting index

end

ending index

step

step iteration