| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Setop
Description
Implementation of Set Operations.
Documentation
union :: Ord a => Set a -> Set a -> Set a Source #
Set Union on two sets.
>>>fromList [0, 1, 2] `union` fromList [0, 2, 4]fromList [0,1,2,4]>>>fromList [0, 2, 4] `union` fromList [0, 1, 2]fromList [0,1,2,4]
difference :: Ord a => Set a -> Set a -> Set a Source #
Set Difference on two sets.
>>>fromList [0, 1, 2] `difference` fromList [0, 2, 4]fromList [1]>>>fromList [0, 2, 4] `difference` fromList [0, 1, 2]fromList [4]