Search plugin
Manual
haskell.org
set:stackage
set:installed
package:base
category:Prelude
license:BSD-3-Clause
filter is:exact
Packages
base
filter
:: (a -> Bool) -> [a] -> [a]
base
Prelude
Data.List
GHC.OldList
filter
, applied to a predicate and a list, returns the list of those elements that satisfy the predicate; i.e.,
filter p xs = [ x | x <- xs, p x]
filter
:: (a -> Bool) -> NonEmpty a -> [a]
base
Data.List.NonEmpty
filter
p xs
removes any elements from
xs
that do not satisfy
p
.