Array

struct Array<Element> : _DestructorSafeContainer
  • Remove all the items specified by the index set. Note that all the indices in the index set must be valid for the array.

    Declaration

    Swift

    mutating func remove(atIndices indices: IndexSet) -> [Element]

    Parameters

    indices

    The set of indices of the items to remove.

    Return Value

    A (possibly empty) array of the elements that were removed. Note that at present this array will be populated in the order they elements were removed, which will be starting at the end of the array and moving towards the beginning.