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 0301a33 commit f13f246Copy full SHA for f13f246
Data/HashMap/Internal.hs
@@ -2311,7 +2311,7 @@ updateOrConcatWithKey :: Eq k => (k -> v -> v -> (# v #)) -> A.Array (Leaf k v)
2311
updateOrConcatWithKey f ary1 ary2 = A.run $ do
2312
let n1 = A.length ary1
2313
let n2 = A.length ary2
2314
- mary <- A.new (n1 + n2) (A.index ary1 1)
+ mary <- A.new (n1 + n2) (A.index ary1 0)
2315
-- copy over all elements from ary1
2316
A.copy ary1 1 mary 1 (n1-1)
2317
-- append or update all elements from ary2
0 commit comments