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 c350f8d commit ca68958Copy full SHA for ca68958
src/Data/Map/Internal.purs
@@ -646,7 +646,7 @@ intersectionWith f m1 m2 = go (toUnfoldable m1 :: List (Tuple k a)) (toUnfoldabl
646
-- | Compute the intersection of two maps, preferring values from the first map in the case
647
-- | of duplicate keys.
648
intersection :: forall k a b. Ord k => Map k a -> Map k b -> Map k a
649
-intersection = intersectionWith (\a b -> a)
+intersection = intersectionWith const
650
651
-- | Difference of two maps. Return elements of the first map where
652
-- | the keys do not exist in the second map.
0 commit comments