y
04/22/2025, 12:56 PMfor loop over a List, have equivalent performance to using subList()?Paul Griffith
04/22/2025, 3:25 PMephemient
04/22/2025, 7:03 PMephemient
04/22/2025, 7:08 PMfor (x in list) is more expensive than for (i in list.indices) val x = list[i] as the latter avoids going through an iterator. but most code should not bother with such microoptimizationsy
04/22/2025, 7:10 PMy
04/22/2025, 7:10 PM