Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps¶
Notice that Iterable.map returns a List instead of an iterator. Since almost all collections in Kotlin eventually inherit from
Iterable, themapmethod of all collections (includingHashMap) in Kotlin returns List.