Skip to content

Commit 9a7416e

Browse files
committed
WIP: Haddocks
1 parent 3f3c5c2 commit 9a7416e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Data/HashMap/Internal.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,6 +2316,11 @@ searchSwap mary n toFind start = go start toFind start
23162316
else go i0 k (i + 1)
23172317
{-# INLINE searchSwap #-}
23182318

2319+
-- | Check whether the key sets of two maps are disjoint (i.e., their 'intersection' is empty).
2320+
--
2321+
-- @
2322+
-- xs ``disjoint`` ys = null (xs ``intersection`` ys)
2323+
-- @
23192324
disjoint :: Eq k => HashMap k a -> HashMap k b -> Bool
23202325
disjoint = disjointSubtrees 0
23212326
{-# INLINE disjoint #-}

0 commit comments

Comments
 (0)