We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f3c5c2 commit 9a7416eCopy full SHA for 9a7416e
Data/HashMap/Internal.hs
@@ -2316,6 +2316,11 @@ searchSwap mary n toFind start = go start toFind start
2316
else go i0 k (i + 1)
2317
{-# INLINE searchSwap #-}
2318
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
2324
disjoint :: Eq k => HashMap k a -> HashMap k b -> Bool
2325
disjoint = disjointSubtrees 0
2326
{-# INLINE disjoint #-}
0 commit comments