Question

How to create sorted map in scala (mutable/immutable)?

Was it helpful?

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
scroll top