Guys, can you explain me the situation (and the re...
# stdlib
v
Guys, can you explain me the situation (and the reasoning behind it)? It turned out that there are no ways to
clone
collections:
Copy code
mapOf(1 to 2) //?
setOf(1) //?

listOf(1).toList() //ok

// two of them!
arrayOf(1).copyOf()
arrayOf(1).clone()

DataClass(1).copy()