indices

trait Collection[A] {
  def indices: Range
}

indices creates a Range with the indices used by this collection.