Gilberto Diaz
04/25/2020, 2:29 AMmapOf(…)
or mutableMapOf(…)
, the order in which elements are inserted are preserved. Is that a correct statement?Kamil Kalisz
04/25/2020, 4:19 AMlinkedMapOf
Gilberto Diaz
04/27/2020, 2:17 PMThe default implementation of Map – LinkedHashMap – preserves the order of elements insertion when iterating the map. In turn, an alternative implementation – HashMap – says nothing about the elements order.