dropWhile

Drops elements from beginnig of range while predicate is true

dropWhile
(
alias pred
Range
)
(
Range range
)
if (
from!"std.range".isInputRange!Range
)

Parameters

pred

comparator

range
Type: Range

input range

Return Value

Type: auto

new range

Examples

import std.array;
assert([1, 2, 3, 4].dropWhile!(a => a < 3).equal([3, 4]));

Meta

Since

0.0.1