Contents

IndexSet

A collection of unique integer values that represent the indexes of elements in another collection.

Declaration

struct IndexSet

Overview

The range of valid integer values is 0...Int.max-1. Anything outside this range is an error.

Topics

Creating an Index Set

Counting Items in a Set

Combining Index Sets

Inserting Elements

Removing Elements

Testing Set Membership

Manipulating Indexes

Finding Elements

Selecting Elements

Shifting Index Groups

Getting a Range-Based View

Using Reference Types

Structures

Initializers

Instance Properties

Instance Methods

See Also

Indexes