given:
val m = Map[String, Int](\"a\" -> 1, \"b\" -> 2, \"c\" -> 3) m.foreach((key: String, value: Int) => println(\">>> key=\" + key + \",
Docs says argument is tuple -> unit, so We can easily do this
Map(1 -> 1, 2 -> 2).foreach(tuple => println(tuple._1 +" " + tuple._2)))