Skip to content

Instantly share code, notes, and snippets.

@andrewharmellaw
Created May 28, 2013 07:30
Show Gist options
  • Save andrewharmellaw/5661074 to your computer and use it in GitHub Desktop.
Save andrewharmellaw/5661074 to your computer and use it in GitHub Desktop.
Map.values() from the REPL
scala> val myMap = Map("MI" -> "Michigan", "OH" -> "Ohio", "WI" -> "Wisconsin", "MI" -> "Michigan")
myMap: scala.collection.immutable.Map[java.lang.String,java.lang.String] = Map(MI -> Michigan, OH -> Ohio, WI -> Wisconsin)
scala> val mapValues = myMap.values
mapValues: Iterable[java.lang.String] = MapLike(Michigan, Ohio, Wisconsin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment