Chapter 15 of the Kotlin: An Illustrated Guide online book is ready now, and it’s all about Data Classes and Destructuring.
For those of you who have wanted a PDF version of the book, I’m pleased to present to you the Leanpub edition of Kotlin: An Illustrated Guide! This PDF version gives you a way to read offline. You can search the text, or use the index or table of contents to find what you’re looking for. Also, you’ll get a head start on each new chapter as it’s written! It’s listed for a minimum price of $15 and a suggested price of $25.
Of course, you’re more than welcome to keep reading the book here on the website if you prefer. Either way, I’m thankful to have you as a reader!
Latest Articles and Videos
Data Classes and Destructuring
It's easy to use data classes to give your objects superpowers like value equality, a readable toString() implementation, the ability to easily copy values, and the ability to be destructured. In this chapter, we'll learn what they are, how to declare them, and when to use them!
Scopes and Scope Functions
Kotlin's scope functions - with(), run(), let(), also(), and apply() - introduce a new scope where an object can be easily used. Learn about two different kinds of scopes and how they affect visibility. Then, explore all five scope functions, and learn how shadowing affects implicit receivers.