tail

fnauto tail(Range)(Range range, size_t n) if (isInputRange!Range && !isInfinite!Range && (hasLength!Range || isForwardRange!Range))

Return a range advanced to within _n elements of the end of range.

Intended as the range equivalent of the Unix

_tail utility. When the length

of range is less than or equal to _n, range is returned as-is.

Completes in 1 steps for ranges that support slicing and have length. Completes in range.length time for all other ranges.

Parameters

rangerange to get _tail of
nmaximum number of elements to include in _tail

Returns

Returns the _tail of range augmented with length information