immutable.Map to mutable.Map
val m = collection.immutable.Map(1->"one",2->"Two")
val n = collection.mutable.Map(m.toSeq: _*)
mutable.Map to immutable.Map
val m = collection.mutable.Map(1->"one",2->"Two")
val n = m.toMap
immutable.Map to mutable.Map
val m = collection.immutable.Map(1->"one",2->"Two")
val n = collection.mutable.Map(m.toSeq: _*)
mutable.Map to immutable.Map
val m = collection.mutable.Map(1->"one",2->"Two")
val n = m.toMap
转载于:https://my.oschina.net/u/2000675/blog/1818699