Instance Method

add(in:)

Adds the indexes in an index range to the receiver.

Declaration

func add(in range: NSRange)

Parameters

indexRange

Index range to add. Must be in the range 0 .. NSNotFound - 1.

Discussion

This method raises an rangeException when indexRange would add an index that exceeds the maximum allowed value for unsigned integers.

See Also

Adding Indexes

func add(Int)

Adds an index to the receiver.

func add(IndexSet)

Adds the indexes in an index set to the receiver.