Answers for "kotlin remove duplicates from list"

1

kotlin remove duplicates from list

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

Code answers related to "kotlin remove duplicates from list"

Browse Popular Code Answers by Language