I use SortedMap for storing ordered elements:
val map = SortedMap("Kim" -> 90, "Steve" -> 22, "Alex" -> 12)
My questions are:
- What is the implementation stand under
SortedMap? - Does
SortedMapsame toRed black tree? SortedMapin Java is an interface, why in Scala it can be instantiated?