One Logo Pool Ball
Foundation · IOS API REFERENCE

IndexSet.RangeView

struct · iOS 8.0+ · SDK 27.1

struct RangeView

An view of the contents of an IndexSet, organized by range. For example, if an IndexSet is composed of: `[1..<5]` and `[7..<10]` and `[13]` then calling `next()` on this view's iterator will produce 3 ranges before returning nil.

Members (7)

get · iOS 8.0+

endIndex

TypeScript
get endIndex(): number
Swift declaration
let endIndex: IndexSet.RangeView.Index

The ending index in the range.

get · iOS 8.0+

startIndex

TypeScript
get startIndex(): number
Swift declaration
let startIndex: IndexSet.RangeView.Index

The beginning index in the range.

method · iOS 8.0+

makeIterator

TypeScript
makeIterator(): SDKHandle
Swift declaration
func makeIterator() -> IndexingIterator<IndexSet.RangeView>

Returns an iterator over the indexes of this range view.

method · iOS 8.0+

index

TypeScript
indexAfter(i: number): number
Swift declaration
func index(after i: IndexSet.RangeView.Index) -> IndexSet.RangeView.Index

Returns the index in the range after the specified one.

method · iOS 8.0+

index

TypeScript
indexBefore(i: number): number
Swift declaration
func index(before i: IndexSet.RangeView.Index) -> IndexSet.RangeView.Index

Returns the index in the range before the specified one.

subscript · iOS 8.0+

subscript

TypeScript
subscript(index: number): SDKHandle
Swift declaration
subscript(index: IndexSet.RangeView.Index) -> Range<IndexSet.Element> { get }

Accesses the item at the given index.

subscript · iOS 8.0+

subscript

TypeScript
subscript90807(bounds: SDKHandle): SDKHandle
Swift declaration
subscript(bounds: Range<IndexSet.RangeView.Index>) -> Slice<IndexSet.RangeView> { get }

Accesses the items at the given range of indexes.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →