Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions std/range/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -2921,13 +2921,13 @@ pure @safe nothrow @nogc unittest

/++
Convenience function which calls
`range.$(REF popFrontN, std, range, primitives)(n) and returns `range`.
$(REF popFrontN, std, _range, primitives)`(range, n)` and returns `range`.
`drop` makes it easier to pop elements from a range
and then pass it to another function within a single expression,
whereas `popFrontN` would require multiple statements.

`dropBack` provides the same functionality but instead calls
`range.$(REF popBackN, std, range, primitives)(n)
$(REF popBackN, std, _range, primitives)`(range, n)`

Note: `drop` and `dropBack` will only pop $(I up to)
`n` elements but will stop if the range is empty first.
Expand Down