Instant is
off
Search plugin
Manual
haskell.org
dropWhile
-text -bytestring
Packages
text
bytestring
base
containers
dropWhile
:: (a -> Bool) -> [a] -> [a]
base
Prelude
,
base
Data.List
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
L
:: (a -> Bool) -> Seq a -> Seq a
containers
Data.Sequence
O(i)
p xs</tt> returns the suffix remaining after
takeWhileL
p xs.
dropWhile
R
:: (a -> Bool) -> Seq a -> Seq a
containers
Data.Sequence
O(i)
p xs</tt> returns the prefix remaining after
takeWhileR
p xs.
dropWhileR
p xs is equivalent to
reverse
(
dropWhileL
p (
reverse
xs)).