dropBackWhile

Convenience function that calls popBackWhile() on the input argument and returns the consumed range to allow function pipelining. In addition this wrapper accepts rvalues.

dropBackWhile
(
alias pred
Range
)
(
auto ref Range range
)
if (
isBidirectionalRange!Range &&
is(typeof(unaryFun!pred))
&&
isImplicitlyConvertible!(typeof(unaryFun!pred((ElementType!Range).init)), bool)
)

Examples

assert("abcdefgh".dropBackWhile!"a > 'e'" == "abcde");

Meta