Instance Method

makeIterator()

Returns an iterator over the elements of this sequence.

Declaration

func makeIterator() -> NSIndexSetIterator

Discussion

Complexity: O(1).

Relationships

From Protocol

See Also

Enumerating Indexes

func enumerate((Int, UnsafeMutablePointer<ObjCBool>) -> Void)

Executes a given Block using each object in the index set.

func enumerate(options: NSEnumerationOptions, using: (Int, UnsafeMutablePointer<ObjCBool>) -> Void)

Executes a given Block over the index set’s indexes, using the specified enumeration options.

func enumerate(in: NSRange, options: NSEnumerationOptions, using: (Int, UnsafeMutablePointer<ObjCBool>) -> Void)

Executes a given Block using the indexes in the specified range, using the specified enumeration options.

struct NSIndexSetIterator

An iterator suitable for enumerating the elements of an index set.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software