@@ -152,7 +152,7 @@ module Data.Text
153 , breakOnAll
153 , breakOnAll
155− , partitionBy
155+ , partition
157 -- , findSubstring
157 -- , findSubstring
@@ -1143,14 +1143,14 @@ find :: (Char -> Bool) -> Text -> Maybe Char
1143find p t = S.findBy p (stream t)
1143find p t = S.findBy p (stream t)
1144{-# INLINE find #-}
1144{-# INLINE find #-}
1146−-- | /O(n)/ The 'partitionBy' function takes a predicate and a 'Text',
1146+-- | /O(n)/ The 'partition' function takes a predicate and a 'Text',
1147-- and returns the pair of 'Text's with elements which do and do not
1147-- and returns the pair of 'Text's with elements which do and do not
1148-- satisfy the predicate, respectively; i.e.
1148-- satisfy the predicate, respectively; i.e.
1150−-- > partitionBy p t == (filter p t, filter (not . p) t)
1150+-- > partition p t == (filter p t, filter (not . p) t)
1151−partitionBy :: (Char -> Bool) -> Text -> (Text, Text)
1151+partition :: (Char -> Bool) -> Text -> (Text, Text)
1152−partitionBy p t = (filter p t, filter (not . p) t)
1152+partition p t = (filter p t, filter (not . p) t)
1153−{-# INLINE partitionBy #-}
1153+{-# INLINE partition #-}
1155-- | /O(n)/ 'filter', applied to a predicate and a 'Text',
1155-- | /O(n)/ 'filter', applied to a predicate and a 'Text',
1156-- returns a 'Text' containing those characters that satisfy the
1156-- returns a 'Text' containing those characters that satisfy the