Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
val map = Map("dev1" -> "Tomasz", "dev2" -> "Patryk", "dev3" -> "Mariusz")
map.map {
case (key, value) => (key.toUpperCase, value.toUpperCase)
}
// Map("DEV1" -> "TOMASZ", "DEV2" -> "PATRYK", "DEV3" -> "MARIUSZ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.