Contents

insert(_:at:)

Inserts the objects in the array at the specified indexes.

Declaration

func insert(_ objects: [Any], at indexes: IndexSet)

Parameters

  • objects:

    An array of objects to insert into the mutable ordered set.

  • indexes:

    The indexes at which the objects in objects should be inserted. The count of locations in indexes must equal the count of objects.

Discussion

Each object in objects is inserted into the receiving mutable ordered set in turn at the corresponding location specified in indexes after earlier insertions have been made.

See Also

Adding, Removing, and Reordering Entries