Yonatan Karp-RudinProyonatankarp.comยทAug 30, 2023Kotlin Code Smell 35 - Explicit IterationTL;DR: Avoid index-based iteration. Embrace higher-order collection functions. Problem Violation of encapsulation Lack of declarativeness Solution Opt for forEach() or high-order iterators. Concealing implementation details opens up possibilit...61 readsKotlin Code Smellsclean codeAdd a thoughtful commentNo comments yetBe the first to start the conversation.