Search code examples
scalascala-collectionssortedmap

How to create sorted map in scala?


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


Solution

  • Use a TreeMap.