TGViewer
StartAndroid StartAndroid @startandroid · 9.41K subscribers
Post #1540 5.21K
При работе с коллекциями в Kotlin не забывайте, что есть операторы с поддержкой индексов:
- withIndex
- filterIndexed
- mapIndexed
- flatMapIndexed
- foldIndexed

#kotlin #collections

https://kt.academy/article/fk-cp-indexed
kt.academy Collection processing in Kotlin: Using indices Just because we use use functional processing function, does not stop us from using indices. Let's learn about withIndex and indexed variants of important functions.
  • 👍 24
  • 💩 1
More from @startandroid
  1. Sep 23, 2026Недавно обновился Android Wireless debugging. Android Debug Bridge (ADB) Wi-Fi 2.0 обещает…
  2. Sep 16, 2026Команда Gradle решила сравнить как два агента (Astra 6 vs Fable 5.1) пофиксят один баг Осн…
  3. Sep 15, 2026💡 Android × AI: исследуем как меняется разработка на Podlodka Android Crew Организаторы P…
  4. Sep 10, 2026Post #2226
  5. Aug 28, 2026Что нового в Jetpack Compose August '26 (2026.08.00) - Breaking Changes - Graphics: Mesh G…
  6. Aug 27, 2026Post #2224
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →