Showing with 7 additions and 0 deletions.
  1. +7 −0 std/range/package.d
7 changes: 7 additions & 0 deletions std/range/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -2870,6 +2870,13 @@ R dropBack(R)(R range, size_t n)
on an empty range, which is undefined behavior. So, only use
$(D popFrontExactly) when it is guaranteed that $(D range) holds at least
$(D n) elements.
Params:
range = the input range to drop from
n = the number of elements to drop
Returns:
`range` with `n` elements dropped
+/
R dropExactly(R)(R range, size_t n)
if (isInputRange!R)
Expand Down