Created
April 8, 2018 05:55
-
-
Save sajjadyousefnia/fbe965e1bc7fcc6fde06304ae28838e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val currenciesMutableMap: MutableMap<String, String> = mutableMapOf("Naira" to "Nigeria", "Dollars" to "USA", "Pounds" to "UK") | |
println("Countries are ${currenciesMutableMap.values}") // Countries are [Nigeria, USA, UK] | |
println("Currencies are ${currenciesMutableMap.keys}") // Currencies are [Naira, Dollars, Pounds] | |
currenciesMutableMap.put("Cedi", "Ghana") | |
currenciesMutableMap.remove("Dollars") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment