Sequence

public extension Sequence where Iterator.Element: Hashable
  • Returns an array with unique elements preserving an order of elements.

    Declaration

    Swift

    func unique() -> [Iterator.Element]

    Return Value

    Unique elements.