File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 80
80
81
81
-- [Note: Local 'go' functions and capturing]
82
82
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
83
- -- As opposed to IntMap , when 'go' function captures an argument, increased
83
+ -- As opposed to Map , when 'go' function captures an argument, increased
84
84
-- heap-allocation can occur: sometimes in a polymorphic function, the 'go'
85
85
-- floats out of its enclosing function and then it heap-allocates the
86
86
-- dictionary and the argument. Maybe it floats out too late and strictness
@@ -1413,7 +1413,7 @@ intersectionWithKey f t1 t2 = mergeWithKey (\k x1 x2 -> Just $ f k x1 x2) (const
1413
1413
-- > myIntersectionWithKey f m1 m2 = mergeWithKey (\k x1 x2 -> Just (f k x1 x2)) (const empty) (const empty) m1 m2
1414
1414
--
1415
1415
-- When calling @'mergeWithKey' combine only1 only2@, a function combining two
1416
- -- 'IntMap 's is created, such that
1416
+ -- 'Map 's is created, such that
1417
1417
--
1418
1418
-- * if a key is present in both maps, it is passed with both corresponding
1419
1419
-- values to the @combine@ function. Depending on the result, the key is either
You can’t perform that action at this time.
0 commit comments