Type Alias

EmptyCollection.Index

A type that represents a valid position in the collection.

Declaration

typealias Index = Int

Discussion

Valid indices consist of the position of every element and a “past the end” position that’s not valid for use as a subscript.