Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RIO.Text.Lazy.Partial
Description
Lazy Text
partial functions. Import as:
import qualified RIO.Text.Lazy.Partial as TL'
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)]
Creation and elimination
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)] #