Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RIO.Text.Partial
Description
Strict Text
partial functions. Import as:
import qualified RIO.Text.Partial as T'
Synopsis
- head :: HasCallStack => Text -> Char
- last :: HasCallStack => Text -> Char
- tail :: HasCallStack => Text -> Text
- init :: HasCallStack => Text -> Text
- replace :: HasCallStack => Text -> Text -> Text -> Text
- foldl1 :: HasCallStack => (Char -> Char -> Char) -> Text -> Char
- foldl1' :: HasCallStack => (Char -> Char -> Char) -> Text -> Char
- foldr1 :: HasCallStack => (Char -> Char -> Char) -> Text -> Char
- maximum :: HasCallStack => Text -> Char
- minimum :: HasCallStack => Text -> Char
- breakOn :: HasCallStack => Text -> Text -> (Text, Text)
- breakOnEnd :: HasCallStack => Text -> Text -> (Text, Text)
- splitOn :: HasCallStack => Text -> Text -> [Text]
- breakOnAll :: HasCallStack => Text -> Text -> [(Text, Text)]
- count :: HasCallStack => Text -> Text -> Int
Basic interface
head :: HasCallStack => Text -> Char #
last :: HasCallStack => Text -> Char #
tail :: HasCallStack => Text -> Text #
init :: HasCallStack => Text -> Text #
Transformations
Folds
Special folds
maximum :: HasCallStack => Text -> Char #
minimum :: HasCallStack => Text -> Char #
Substrings
Breaking strings
breakOnEnd :: HasCallStack => Text -> Text -> (Text, Text) #
Breaking into many substrings
Searching
breakOnAll :: HasCallStack => Text -> Text -> [(Text, Text)] #