Kotlin / kotlinx.collections.immutable

Immutable persistent collections for Kotlin
Apache License 2.0
1.12k stars 56 forks source link

Is the Android fast iteratable methods supported? #173

Closed mortenholmgaard closed 5 months ago

mortenholmgaard commented 5 months ago

Does kotlinx.collections.immutable support the fast iterations methods? See Android documentation for them here.

JakeWharton commented 5 months ago

Those (poorly-named) functions are only for use with ArrayList as it supports fast random access. For List implementations that are not backed by simple arrays, those functions will almost always be slower than the regular functions.