Array.opSlice

  1. Range opSlice()
  2. ConstRange opSlice()
  3. ImmutableRange opSlice()
  4. Range opSlice(size_t i, size_t j)
    struct Array(T)
    opSlice
    (
    size_t i
    ,
    size_t j
    )
    if (
    !is(immutable T == immutable bool)
    )
  5. ConstRange opSlice(size_t i, size_t j)
  6. ImmutableRange opSlice(size_t i, size_t j)

Return Value

Type: Range

A range that iterates over elements of the array from index i up to (excluding) index j.

Precondition: i <= j && j <= length

Complexity: O(1)

Meta