Summary
Kotlin is quite powerful, and the data classes are just proving that. You have learned how the language and the compiler work together to provide you with boilerplate-free constructs. We get to extend our keyboard's lifetime while focusing more on the problem to solve. You have also seen how destructing an object in a number of variables can prove to be quite handy, promoting code that is a lot more readable.
In the next chapter, we will cover the Kotlin extensions to the Java collections library. It introduces mutable versus immutable state, and why the latter can be useful. It shows the Kotlin additions, which make using collections easier than Java.