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 e0d7141 commit d670ac7Copy full SHA for d670ac7
Data/HashMap/Internal.hs
@@ -2319,7 +2319,7 @@ updateOrConcatWithKey f ary1 ary2 = A.run $ do
2319
| i2 >= n2 = return iEnd
2320
| otherwise = do
2321
l@(L k v2) <- A.indexM ary2 i2
2322
- res <- searchSwap k iMut n2 mary
+ res <- searchSwap k iMut n1 mary
2323
case res of
2324
Just (L _ v1) -> do -- key occurs in both arrays, store combination in position iMut
2325
case f k v1 v2 of (# v3 #) -> A.write mary iMut (L k v3)
0 commit comments