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.
dropAround
1 parent d0d3386 commit 92768ecCopy full SHA for 92768ec
Data/Text/Lazy.hs
@@ -1229,7 +1229,7 @@ dropWhileEnd p = go
1229
1230
-- | /O(n)/ 'dropAround' @p@ @t@ returns the substring remaining after
1231
-- dropping characters that satisfy the predicate @p@ from both the
1232
--- beginning and end of @t@. Subject to fusion.
+-- beginning and end of @t@.
1233
dropAround :: (Char -> Bool) -> Text -> Text
1234
dropAround p = dropWhile p . dropWhileEnd p
1235
{-# INLINE [1] dropAround #-}
0 commit comments