casengine.blogg.se

Kotlin any list
Kotlin any list









kotlin any list

Let’s dig into ArrayList and LinkedList in Kotlin! In particular, by the end of this article, you will be able to easily tell when and why it is better to adopt an ArrayList over a LinkedList or vice versa.

kotlin any list

Here, you will learn how they are implemented behind the scenes in Kotlin, how they work, and what performance benefits they offer. In detail, ArrayList and LinkedList represent two of the most widely adopted JVM data collection structures. This is why you should know the characteristics of each of the most popular data collections offered by the programming language you are using. Adopting the correct data collection can make all the difference when it comes to performance and resource usage. Also, thanks to its interoperability with the JVM, you can choose between the many Java collections. Kotlin provides several data collection implementations. Spreading knowledge through writing is my mission.

kotlin any list

Antonello Zanini Follow I'm a software engineer, but I prefer to call myself a technology bishop.











Kotlin any list