Saturday, May 09, 2009 Iterating over Map with Scala Here is a summary of the iteration over a Scala Map discussion, started by Ikai at the Scala mailing list. Here is the Map we wish to iterate over. scala> val m1 = Map[Int, Int](1->2, 2->3, 4->50) m1: scala.collection.immutable.Map[Int,Int] = Map(1 -> 2, 2 -> 3, 4 -> 50)The options are: Accessing the Tuple2 object structure.scala> m1 foreach ( (