Module
Data.Filterable
- Package
- purescript-filterables
- Repository
- Risto-Stevcev/purescript-filterables
#Filterable Source
class (Foldable f) <= Filterable f where
The Filterable
class provides a filter
ing operation for Foldable
structures.
Instances must satisfy the following laws in addition to Foldable
laws:
filter (\_ → true) x == x
filter (\_ → false) x == mempty
length (filter f x) <= length x
Members
Instances
Filterable Array
Filterable List
(Ord k) => Filterable (Map k)
Filterable StrMap
#verifyFilter Source
verifyFilter :: forall a h f. Eq (f a) => Monoid (f a) => BooleanEq h => Filterable f => (a -> h) -> f a -> Boolean
#defaultFilter Source
defaultFilter :: forall a h f. BooleanEq h => Applicative f => Foldable f => Monoid (f a) => (a -> h) -> f a -> f a
- Modules
- Data.
Filterable