Skip to content

Instantly share code, notes, and snippets.

@alexo
Created December 13, 2012 20:56
Show Gist options
  • Save alexo/4279766 to your computer and use it in GitHub Desktop.
Save alexo/4279766 to your computer and use it in GitHub Desktop.
val romanNumeral = Map(1 -> "I", 2 -> "II", 3 -> "III", 4 -> "IV", 5 -> "V")
println(romanNumeral(4))
val treasureMap = new HashMap[Int, String]
treasureMap += 1 -> "Go to island."
treasureMap += 2 -> "Find big X on ground."
treasureMap += 3 -> "Dig."
println(treasureMap(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment