Drops elements from a range
Drops n elements from beginning of range
Drops n elements from end of range
Drops elements from end of range while predicate is true
Drops elements from beginnig of range while predicate is true
assert([1, 2, 3, 4].drop.array == [2, 3, 4]); assert([1, 2, 3, 4].dropRight.array == [1, 2, 3]); assert([1, 2, 3, 4].dropWhile!(a => a < 3).array == [3, 4]); assert([1, 2, 3, 4].dropRightWhile!(a => a > 2).equal([1, 2]));
See Source File
Drops elements from a range