I want to remove duplicate elements from an array. there are many answers in stack overflow but for swift 3.
my array:
var images = [InputSource]()
... // append to array
how to remove duplicate elements from this array?
Is there any native api from swift 3 ?