We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f13f246 commit 7617553Copy full SHA for 7617553
Data/HashMap/Internal.hs
@@ -2311,8 +2311,9 @@ 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
+ -- initialize output array with first element of ary1
2315
mary <- A.new (n1 + n2) (A.index ary1 0)
- -- copy over all elements from ary1
2316
+ -- copy over remaining elements from ary1
2317
A.copy ary1 1 mary 1 (n1-1)
2318
-- append or update all elements from ary2
2319
let go !iEnd !i2 !iMut
0 commit comments