Hi I'm trying to create a generic function to make a deep copy of list using the copy() method that a Data class provide us.
I'm using the method that I found on other post which returns a list of objects being deep copied:
listDataClass.map{ it.copy() }
But I can't seem to know how to make it as a generic function for data class so I'm really curious to see how'd you make one like this.