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