Answer the question
In order to leave comments, you need to log in
Why are collections truncated in Kotlin?
There are really many standard collections in Java for any occasion.
But why are there so few of them in Kotlin?
With what it can be connected?
Answer the question
In order to leave comments, you need to log in
The answer is multiplatform.
When writing Kotlin under the JVM, you can use the entire set of Java collections. The picture below is somehow incomplete, at least there is no Map and MutableMap on it. As a maximum, since their java.util.HashSet implements MutableSet, then LinkedHashSet, TreeSet too.
But in general, this is not fair if the code is compiled under JS or Native.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question