Skip to content

Instantly share code, notes, and snippets.

@ch8n
Created October 12, 2020 13:17
Show Gist options
  • Save ch8n/8c362fd379cf3475c6a4e79504fdba1c to your computer and use it in GitHub Desktop.
Save ch8n/8c362fd379cf3475c6a4e79504fdba1c to your computer and use it in GitHub Desktop.
mutablemap resolved by linkedhashMap
fun <K, V> mutableMapOf(): MutableMap<K, V> = LinkedHashMap()
// mutableMapOf is resolved using LinkedHashMap
// as discussed earlier Linked HashMap signature
class LinkedHashMap<K, V> : MutableMap<K, V>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment