Swift Tips
DevSwiftData Structures & Algorithms
Remove Duplicates in Array
public extension Array where Element: Hashable {
func uniqued() -> [Element] {
var seen = Set<Element>()
return filter { seen.insert($0).inserted }
}
}