Answers for "remove duplicates from a list in kotlin"

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
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

Code answers related to "remove duplicates from a list in kotlin"

Browse Popular Code Answers by Language