forcelain
03/04/2018, 1:38 PMdata class Item(
val children: List<Item>
}
is there a way to make a deep (recursive) copy of such an object? item.copy()
creates a copy of the top object only but not the children
Andreas Sinz
03/04/2018, 1:44 PMcopy
that does a deep copy or serialize and deserialize the whole instancekarelpeeters
03/04/2018, 1:50 PMkarelpeeters
03/04/2018, 1:51 PMPere Casafont
03/04/2018, 2:37 PMcopy()
should be recursivekarelpeeters
03/04/2018, 2:37 PMPere Casafont
03/04/2018, 2:40 PMPere Casafont
03/04/2018, 2:42 PMforcelain
03/04/2018, 2:55 PMcopy
method but not including all inner data objectskarelpeeters
03/04/2018, 2:58 PMPere Casafont
03/04/2018, 3:34 PMPere Casafont
03/04/2018, 3:35 PMaraqnid
03/05/2018, 12:19 PMkarelpeeters
03/05/2018, 12:38 PM