forEach

inline fun forEach(block: (element: Int) -> Unit)(source)

Calls block for each element in the IntList, in order.

Parameters

block

will be executed for every element in the list, accepting an element from the list