The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Cycle.opIndex
std
range
Cycle
Range primitives
auto ref
opIndex
(size_t n)
auto ref
opIndex
(size_t n)
struct
Cycle
(R)
ref const
static if
(
isRandomAccessRange!R && hasLength!R
)
static if
(
is(typeof((cast(const R)_original)[_index])) && is(typeof((cast(const R)_original).length))
)
auto ref
opIndex
(
size_t
n
)
if
(
isForwardRange
!
R
&&
!
isInfinite
!
R
)
Meta
Source
See Implementation
std
range
Cycle
constructors
this
functions
opIndex
opIndexAssign
opSlice
popFront
manifest constants
opDollar
properties
front
save
variables
empty
Range primitives