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 5aec998 commit 03e5a6eCopy full SHA for 03e5a6e
containers/src/Data/Map/Internal.hs
@@ -3795,9 +3795,9 @@ fromDescListWith f xs
3795
-- if the precondition may not hold.
3796
--
3797
-- > let f k a1 a2 = (show k) ++ ":" ++ a1 ++ a2
3798
--- > fromAscListWithKey f [(3,"b"), (5,"a"), (5,"b"), (5,"b")] == fromList [(3, "b"), (5, "5:b5:ba")]
3799
--- > valid (fromAscListWithKey f [(3,"b"), (5,"a"), (5,"b"), (5,"b")]) == True
3800
--- > valid (fromAscListWithKey f [(5,"a"), (3,"b"), (5,"b"), (5,"b")]) == False
+-- > fromAscListWithKey f [(3,"b"), (5,"a"), (5,"b"), (5,"c")] == fromList [(3, "b"), (5, "5:c5:ba")]
+-- > valid (fromAscListWithKey f [(3,"b"), (5,"a"), (5,"b"), (5,"c")]) == True
+-- > valid (fromAscListWithKey f [(5,"a"), (3,"b"), (5,"b"), (5,"c")]) == False
3801
3802
-- Also see the performance note on 'fromListWith'.
3803
containers/src/Data/Map/Strict/Internal.hs
@@ -1661,9 +1661,9 @@ fromDescListWith f xs
1661
1662
1663
1664
1665
1666
1667
1668
1669
0 commit comments