Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created January 14, 2016 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjazdzewski1990/0520a103cd6d33ecd904 to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/0520a103cd6d33ecd904 to your computer and use it in GitHub Desktop.
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