In the previous chapters, we have covered a wide range of topics, starting from data types, classes, and objects in Kotlin and moving on to immutability, functions, delegates, and coroutines in the last chapter. In this chapter, we are going to discuss the collections framework and data operations in Kotlin. Kotlin inherits collections framework from Java, but has significant changes from it in favor of functional programming.
The collections framework that Kotlin provides is more functional than Java and, as the signature of Kotlin, it is easier to use and understand.
We will start this chapter with the fundamentals of collections and gradually move on to data operations that collections support in Kotlin. The following is the list of topics that we are going to cover in this chapter:
- An introduction to collections
- The Iterator...