You are currently viewing For Android, is it negligible to use mutableMapOf instead of hashMapOf?

For Android, is it negligible to use mutableMapOf instead of hashMapOf?

I’ve read that mutableMapOf and mapOf uses LinkedHashMap and preserve ordering, while hashMapOf uses HashMap and does not. Should we stick with using generic methods? Thanks.

submitted by /u/VincentJoshuaET
[link] [comments]