@@ -152,7 +152,7 @@ module Data.Text
152152 , filter
153153 , breakOnAll
154154 , find
155− , partitionBy
155+ , partition
156156
157157 -- , findSubstring
158158
@@ -1143,14 +1143,14 @@ find :: (Char -> Bool) -> Text -> Maybe Char
11431143find p t = S.findBy p (stream t)
11441144{-# INLINE find #-}
11451145
1146−-- | /O(n)/ The 'partitionBy' function takes a predicate and a 'Text',
1146+-- | /O(n)/ The 'partition' function takes a predicate and a 'Text',
11471147-- and returns the pair of 'Text's with elements which do and do not
11481148-- satisfy the predicate, respectively; i.e.
11491149--
1150−-- > partitionBy p t == (filter p t, filter (not . p) t)
1151−partitionBy :: (Char -> Bool) -> Text -> (Text, Text)
1152−partitionBy p t = (filter p t, filter (not . p) t)
1153−{-# INLINE partitionBy #-}
1150+-- > partition p t == (filter p t, filter (not . p) t)
1151+partition :: (Char -> Bool) -> Text -> (Text, Text)
1152+partition p t = (filter p t, filter (not . p) t)
1153+{-# INLINE partition #-}
11541154
11551155-- | /O(n)/ 'filter', applied to a predicate and a 'Text',
11561156-- returns a 'Text' containing those characters that satisfy the