I merged a scala Set of scala Maps using a generic function
Set
Map
def mergeMaps[A, B](ms: Set[Map[A, B]])(f: (B, B) => B): Map[A, B] = (Ma
Would a JavaConverter do what you want?
JavaConverter
scala> import scala.collection.JavaConverters._ import scala.collection.JavaConverters._ scala> val x = (new java.util.HashMap[Int,Int]).asScala x: scala.collection.mutable.Map[Int,Int] = Map()