June 2018
Intermediate to advanced
310 pages
6h 32m
English
The whole idea of a prototype is to be able to clone an object easily. There are a number of reasons you may want to do this:
Luckily, Kotlin fixes the broken Java clone() method. For data classes, there's the copy() method, which takes an existing data class, and creates a new copy of it, optionally changing some of its attributes in ...
Read now
Unlock full access