ich SortedMap
für geordnete Elemente speichern:Scala SortedMap unter der Haube
val map = SortedMap("Kim" -> 90, "Steve" -> 22, "Alex" -> 12)
Meine Fragen sind:
- Was ist die Umsetzung Stand unter
SortedMap
? - Ist
SortedMap
gleichRed black tree
? SortedMap
in Java ist eine Schnittstelle, warum in Scala kann es instanziiert werden?
3. ist https://stackoverflow.com/questions/9737352/what-is-the-apply-function-in-scala#9738862 – Reactormonk