dropWhile

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

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

Examples

assert("aaaaabcd".dropWhile!"a == 'a'" == "bcd");

Meta