Function nth
Gets the element at index n of array if found, else none
.
auto auto nth(std .typecons .Flag!("wrap") wrap = from .std .typecons .No .wrap, Range)
(
Range range,
size_t n
)
if (from .std .range .isInputRange!Range);
Parameters
Name | Description |
---|---|
wrap | If Yes , then we wrap around the edge, else not |
range | an input range |
n | which element to return Returns The value at the nth index of range or defaultValue i not found |
Since
0.0.1