Scala - How to convert immutable.Map to mutable.Map? Code Example

The code for How to convert immutable.Map to mutable.Map?

val m = collection.immutable.Map(1->"one",2->"Two")
val n = collection.mutable.Map(m.toSeq: _*) 
Code by IncludeHelp, on August 8, 2022 01:51

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.