Skip to content

Commit

Permalink
Merge pull request #4449 from JackStouffer/patch-14
Browse files Browse the repository at this point in the history
Improve docs for std.range.dropExactly
  • Loading branch information
schveiguy committed Jun 27, 2016
2 parents 76fc3e1 + 7ce9d83 commit b65ebb9
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit b65ebb9

Please sign in to comment.