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.
spanAntitone
partitionWithKey
partition
1 parent e5b3bba commit b3e92f4Copy full SHA for b3e92f4
Data/Map/Internal.hs
@@ -2854,7 +2854,7 @@ dropWhileAntitone p (Bin _ kx x l r)
2854
--
2855
-- @
2856
-- spanAntitone p xs = ('takeWhileAntitone' p xs, 'dropWhileAntitone' p xs)
2857
--- spanAntitone p xs = partition p xs
+-- spanAntitone p xs = partitionWithKey (\k _ -> p k) xs
2858
2859
2860
-- Note: if @p@ is not actually antitone, then @spanAntitone@ will split the map
0 commit comments