Created
February 13, 2017 09:46
-
-
Save darionyaphet/47184aefbc932c056cbece80285e3e8e to your computer and use it in GitHub Desktop.
This file contains 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 m = Map("k0"->"v0","k1"->"v1","k2"->"v2") | |
val n = m.map{case (k,v) => (v,k)}.toMap | |
println(n) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment