Skip to content

Commit 1c20739

Browse files
naming
1 parent bf9a27f commit 1c20739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Data/HashMap/Internal.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ intersectionWithKey# f = go 0
17851785
-- collision vs. collision
17861786
go _ (Collision h1 ls1) (Collision h2 ls2)
17871787
| h1 == h2 = runST $ do
1788-
(len, mary) <- intersectionUnorderedArrayWithKey f ls1 ls2
1788+
(len, mary) <- intersectionCollisions f ls1 ls2
17891789
case len of
17901790
0 -> pure Empty
17911791
1 -> Leaf h1 <$> A.read mary 0
@@ -1864,7 +1864,7 @@ intersectionArrayBy f !b1 !b2 !ary1 !ary2 = do
18641864
{-# INLINE intersectionArrayBy #-}
18651865

18661866
intersectionCollisions :: Eq k => (k -> v1 -> v2 -> (# v3 #)) -> A.Array (Leaf k v1) -> A.Array (Leaf k v2) -> ST s (Int, A.MArray s (Leaf k v3))
1867-
intersectionUnorderedArrayWithKey f ary1 ary2 = do
1867+
intersectionCollisions f ary1 ary2 = do
18681868
mary2 <- A.thaw ary2 0 $ A.length ary2
18691869
mary <- A.new_ $ A.length ary1 + A.length ary2
18701870
let go i j
@@ -1880,7 +1880,7 @@ intersectionUnorderedArrayWithKey f ary1 ary2 = do
18801880
go (i + 1) j
18811881
maryLen <- go 0 0
18821882
pure (maryLen, mary)
1883-
{-# INLINE intersectionUnorderedArrayWithKey #-}
1883+
{-# INLINE intersectionCollisions #-}
18841884

18851885
searchSwap :: Eq k => k -> Int -> A.MArray s (Leaf k v) -> ST s (Maybe (Leaf k v))
18861886
searchSwap toFind start = go start toFind start

0 commit comments

Comments
 (0)