dropWhile package:rio

dropWhile p xs returns the suffix remaining after takeWhile p xs.
dropWhile p xs returns the suffix remaining after takeWhile p xs:
dropWhile (< 3) [1,2,3,4,5,1,2,3] == [3,4,5,1,2,3]
dropWhile (< 9) [1,2,3] == []
dropWhile (< 0) [1,2,3] == [1,2,3]
dropWhile p xs returns the suffix remaining after takeWhile p xs.
O(n) dropWhile p t returns the suffix remaining after takeWhile p t. Subject to fusion.
O(n) Drop the longest prefix of elements that satisfy the predicate without copying.
O(n) Drop the longest prefix of elements that satisfy the predicate without copying.
O(n) Drop the longest prefix of elements that satisfy the predicate without copying.
O(n) Drop the longest prefix of elements that satisfy the predicate without copying.
The dropWhileEnd function drops the largest suffix of a list in which the given predicate holds for all elements. For example:
>>> dropWhileEnd isSpace "foo\n"
"foo"
>>> dropWhileEnd isSpace "foo bar"
"foo bar"
dropWhileEnd isSpace ("foo\n" ++ undefined) == "foo" ++ undefined
O(log n). Drop while a predicate on the keys holds. The user is responsible for ensuring that for all keys j and k in the map, j < k ==> p j >= p k. See note at spanAntitone.
dropWhileAntitone p = fromDistinctAscList . dropWhile (p . fst) . toList
dropWhileAntitone p = filterWithKey (k -> not (p k))
where <math> is the prefix length. dropWhileL p xs returns the suffix remaining after takeWhileL p xs.
where <math> is the suffix length. dropWhileR p xs returns the prefix remaining after takeWhileR p xs. dropWhileR p xs is equivalent to reverse (dropWhileL p (reverse xs)).
O(log n). Drop while a predicate on the elements holds. The user is responsible for ensuring that for all elements j and k in the set, j < k ==> p j >= p k. See note at spanAntitone.
dropWhileAntitone p = fromDistinctAscList . dropWhile p . toList
dropWhileAntitone p = filter (not . p)
O(n) dropWhileEnd p t returns the prefix remaining after dropping characters that satisfy the predicate p from the end of t. Subject to fusion. Examples:
>>> dropWhileEnd (=='.') "foo..."
"foo"
O(n) dropWhileEnd p t returns the prefix remaining after dropping characters that satisfy the predicate p from the end of t. Examples:
dropWhileEnd (=='.') "foo..." == "foo"