core-ktx / androidx.view / android.view.ViewGroup / forEachIndexed

forEachIndexed

inline fun ViewGroup.forEachIndexed(action: (index: Int, view: View) -> Unit): Unit

Performs the given action on each view in this view group, providing its sequential index.