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
SortedMap
same toRed black tree
? SortedMap
in Java is an interface, why in Scala it can be instantiated?