slice

trait Collection[A] {
  def slice(i: Int, j: Int): Collection[A]
}

slice creates a collection with the sequence of elements that start at index i until the index j.