mapIndexedLaw

inline fun <A, B> Array<A>.mapIndexedLaw(transform: (Int, A) -> B): List<B>