Skip to content

Instantly share code, notes, and snippets.

@yk-tanigawa
Last active July 6, 2016 06:28
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 yk-tanigawa/02f108b3b81d873711d335e2032a8dcf to your computer and use it in GitHub Desktop.
Save yk-tanigawa/02f108b3b81d873711d335e2032a8dcf to your computer and use it in GitHub Desktop.
def someMap: Map[String, Int]
someMap.keys.map(key => (key -> someMap(key).someFunc)).toMap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment