Skip to content

Commit b3e92f4

Browse files
sgraf812treeowl
authored andcommitted
Express spanAntitone in terms of partitionWithKey instead of partition
The current haddock doesn't type-check.
1 parent e5b3bba commit b3e92f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Map/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ dropWhileAntitone p (Bin _ kx x l r)
28542854
--
28552855
-- @
28562856
-- spanAntitone p xs = ('takeWhileAntitone' p xs, 'dropWhileAntitone' p xs)
2857-
-- spanAntitone p xs = partition p xs
2857+
-- spanAntitone p xs = partitionWithKey (\k _ -> p k) xs
28582858
-- @
28592859
--
28602860
-- Note: if @p@ is not actually antitone, then @spanAntitone@ will split the map

0 commit comments

Comments
 (0)