onEachIndexedLaw

inline fun <A, C : Collection<A>> C.onEachIndexedLaw(action: (Int, A) -> Unit): C