Skip to content

Commit ca68958

Browse files
committed
Data.Map.intersection: Use const
1 parent c350f8d commit ca68958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Map/Internal.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ intersectionWith f m1 m2 = go (toUnfoldable m1 :: List (Tuple k a)) (toUnfoldabl
646646
-- | Compute the intersection of two maps, preferring values from the first map in the case
647647
-- | of duplicate keys.
648648
intersection :: forall k a b. Ord k => Map k a -> Map k b -> Map k a
649-
intersection = intersectionWith (\a b -> a)
649+
intersection = intersectionWith const
650650

651651
-- | Difference of two maps. Return elements of the first map where
652652
-- | the keys do not exist in the second map.

0 commit comments

Comments
 (0)