Answers for "how to duplicate list kotlin"

1

kotlin copy list

val selectedSeries = series.toMutableList()
Posted by: Guest on October-19-2021
0

remove duplicates from a list in kotlin

val a = arrayOf("a", "a", "b", "c", "c")
val b = a.distinct() // ["a", "b", "c"]
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language