feat(participants): small Name-change
This commit is contained in:
parent
b96327b18d
commit
eced7781ae
@ -1,5 +1,5 @@
|
||||
module Utils.Set
|
||||
( setIntersectAll
|
||||
( setUnionAll
|
||||
, setIntersectNotOne
|
||||
, setIntersections
|
||||
, setMapMaybe
|
||||
@ -20,10 +20,10 @@ import Control.Lens.Prism
|
||||
import Control.Lens
|
||||
|
||||
-- | cardinal number of a Set
|
||||
setIntersectAll :: Ord a => [Set.Set a] -> Int
|
||||
setIntersectAll [] = 0
|
||||
setIntersectAll [x] = Set.size x
|
||||
setIntersectAll (x:y:z) = setIntersectAll (xy:z) where xy = Set.union x y
|
||||
setUnionAll :: Ord a => [Set.Set a] -> Int
|
||||
setUnionAll [] = 0
|
||||
setUnionAll [x] = Set.size x
|
||||
setUnionAll (x:y:z) = setUnionAll (xy:z) where xy = Set.union x y
|
||||
|
||||
-- | cardinal number of an intersection of a set and a list of sets
|
||||
setIntersectNotOne :: Ord a => Set.Set a -> [Set.Set a] -> Int
|
||||
|
||||
Loading…
Reference in New Issue
Block a user