Most developers write a lot of code that ends up processing a collection of items, such as lists, maps, and sets. Getting familiar with and understanding the Kotlin standard library for collections is key to any aspiring Kotlin developer. If you have been working with Scala collections, you will find quite a few similarities. However, if your development background is only Java, you will find a new and improved way of dealing with your collections of objects, and will probably appreciate how easy it is to achieve a lot with very little code.
This chapter covers the Kotlin standard library for collections, and you will learn how it extends the Java collections library to make your daily coding a lot easier. It will present two flavors of collections—mutable and immutable. You will learn how they can be used, as well as how they work when interacting with Java...