Kotlin Code Smell 35 - Explicit Iteration
TL;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...
yonatankarp.com1 min read