dropOne

fnR dropOne(R)(R range) if (isInputRange!R)

dropOne is a convenience function which calls range.popFront() and returns range. Unlike popFront, the range argument is passed by copy, not by ref.

dropOne makes it easier to pop an element from a range rvalue and then pass it to another function within a single expression, whereas popFront would require multiple statements.

dropBackOne provides the same functionality but instead calls range.popBack().