Login
From:
SwiftLee
(Uncensored)
subscribe
Unique values in Swift: Removing duplicates from an array - SwiftLee
https://www.avanderlee.com/swift/unique-values-removing-duplicates-array/
links
backlinks
Tagged with:
swift
performance
array
set
duplicates
Roast topics
Find topics
Find it!
Removing duplicates from a collection to get unique values can be achieved in two ways. One is more performant than the other, so let's dive in!