File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
18661866intersectionCollisions :: 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
18851885searchSwap :: Eq k => k -> Int -> A. MArray s (Leaf k v ) -> ST s (Maybe (Leaf k v ))
18861886searchSwap toFind start = go start toFind start
You can’t perform that action at this time.
0 commit comments