Range.opSlice

Creates a new Range using the following syntax

  1. Range!(T, U) opSlice(T start, U end)
    struct Range(T = size_t, U = T)
    static
    Range!(T, U)
    opSlice
    (,
    U end
    )
  2. T[] opSlice()

Parameters

start T

the start of the range

end U

the end of the range

Return Value

Type: Range!(T, U)

the created Range

Examples

auto r = range[3..9];

Meta