elect
09/21/2020, 9:32 AM.reversed()
) other than
for(i in g.windows.lastIndex downTo 0) {
val window = g.windows[i]
? Ps: I do need continue
and break
insideBig Chungus
09/21/2020, 9:35 AMelect
09/21/2020, 9:35 AMBig Chungus
09/21/2020, 9:35 AMelect
09/21/2020, 9:36 AMPHaroZ
09/21/2020, 9:47 AM.asRerversed()
do not create new list : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/as-reversed.htmlelect
09/21/2020, 9:49 AMpublic fun <T> MutableList<T>.asReversed(): MutableList<T> = ReversedList(this)
elect
09/21/2020, 9:49 AMdownTo
as well actually..elect
09/21/2020, 9:50 AMBig Chungus
09/21/2020, 9:55 AMPHaroZ
09/21/2020, 10:03 AMNir
09/21/2020, 12:45 PMBig Chungus
09/21/2020, 12:46 PMNir
09/21/2020, 12:46 PMNir
09/21/2020, 12:47 PM