Module
Data.HashSet
- Package
- purescript-unordered-collections
- Repository
- fehrenbach/purescript-unordered-collections
#intersection Source
intersection :: forall a. Hashable a => HashSet a -> HashSet a -> HashSet a
Intersect two sets.
#difference Source
difference :: forall a. Hashable a => HashSet a -> HashSet a -> HashSet a
Difference of two sets.
Also known as set minus or relative complement. Returns a set of all elements of the left set that are not in the right set.
- Modules
- Data.
HashMap - Data.
HashSet - Data.
Hashable
The
Foldable
instance is best used with a commutative function/Monoid
, since hash sets do not guarantee any particular order.