S
S
Sergei Chamkin2020-07-05 20:23:17
Kotlin
Sergei Chamkin, 2020-07-05 20:23:17

Why are collections truncated in Kotlin?

There are really many standard collections in Java for any occasion.
1576667379.jpg
But why are there so few of them in Kotlin?
5.1.png
With what it can be connected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
koperagen, 2020-07-05
@Sergei1337

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 question

Ask a Question

731 491 924 answers to any question