Summary
You have seen how to use the Kotlin collection API in great detail. You have learned how the standard library provides you with the distinction between immutable and mutable collection types, and how immutability is achieved at the interface level. You know now that Kotlin doesn't add any new collection, but rather relies on the existing Java large-collection library. Type aliasing done by the Kotlin compiler is not a mystery anymore. Now you can go and use the arrays properly because you leaned to use the specific implementations over the generic one when it comes to primitive types.
The Kotlin standard library provides you with the building blocks to express complex computations via a few simple extension methods, hopefully giving you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access