How to create sorted map in scala?
-
28-09-2019 - |
Question
How to create sorted map in scala (mutable/immutable)?
Solution
Use a TreeMap
.
OTHER TIPS
There's always java.util.TreeMap which, although not as nice as Scala's maps, is probably exactly the behavior for which you're looking.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow