miha-x64
fun <T> List<T>.forEachReversed(consumer: (T)->Unit) { // hope `this is RandomAccess` for (i in size - 1 downTo 0) { consumer(get(i)) } }