Created
November 17, 2015 11:42
-
-
Save ummels/5e936e23ec6e3bf807c3 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(0 -> 'a') | |
for (n <- 0 until 2) { | |
m.get(n) match { | |
case Some(x) => println(s"Value found for key $n: $x") | |
case None => println(s"No value found for key $n") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment