Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You can use patterns with variables in for comprehensions. For each traversed value, the variables are bound. This makes it possible to traverse a map:
import scala.collection.JavaConversions.propertiesAsScalaMap // Converts Java Properties to a Scala map—just to get an interesting example for ((k, v) <- System.getProperties()) println(k + " -> " + v)