Skip to content

Commit 370ee24

Browse files
committed
WIP: haddocks
1 parent 9a7416e commit 370ee24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Data/HashSet/Internal.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@ intersection :: Eq a => HashSet a -> HashSet a -> HashSet a
405405
intersection (HashSet a) (HashSet b) = HashSet (H.intersection a b)
406406
{-# INLINABLE intersection #-}
407407

408+
-- | Check whether two sets are disjoint (i.e., their intersection is empty).
409+
--
410+
-- @
411+
-- xs ``disjoint`` ys = null (xs ``intersection`` ys)
412+
-- @
408413
disjoint :: Eq k => HashSet k -> HashSet k -> Bool
409414
disjoint (HashSet a) (HashSet b) = H.disjoint a b
410415
{-# INLINE disjoint #-}

0 commit comments

Comments
 (0)