Array

struct Array<Element> : _DestructorSafeContainer
  • Makes an empty array of Element type.

    Declaration

    Swift

    public static var empty: [Element] { get }
  • Undocumented

    See more

    Declaration

    Swift

    public struct DeltaItems<Element>
  • Undocumented

    Declaration

    Swift

    public func difference(of anOther: [Element]) -> DeltaItems<Element>
  • Undocumented

    Declaration

    Swift

    public func getAddedAndRemovedItems(of anOther: [Element]) -> (added: [Element], removed: [Element])
  • Undocumented

    Declaration

    Swift

    public func removeDuplicates() -> [Element]
  • Undocumented

    Declaration

    Swift

    public func filterDuplicates(includeElement: @escaping (_ lhs: Element, _ rhs: Element) -> Bool) -> [Element]
  • Undocumented

    Declaration

    Swift

    public mutating func remove(object: Element)
  • Undocumented

    Declaration

    Swift

    public mutating func removeObjects(at indexes: [Int])