rio-0.1.15.1: A standard library for Haskell
Safe HaskellSafe
LanguageHaskell2010

RIO.Text.Lazy.Partial

Description

Lazy Text partial functions. Import as:

import qualified RIO.Text.Lazy.Partial as TL'
Synopsis

Creation and elimination

head :: Text -> Char #

last :: Text -> Char #

tail :: Text -> Text #

init :: Text -> Text #

Transformations

replace :: Text -> Text -> Text -> Text #

Folds

foldl1 :: (Char -> Char -> Char) -> Text -> Char #

foldl1' :: (Char -> Char -> Char) -> Text -> Char #

foldr1 :: (Char -> Char -> Char) -> Text -> Char #

Special folds

Substrings

Breaking strings

breakOn :: Text -> Text -> (Text, Text) #

Breaking into many substrings

splitOn :: Text -> Text -> [Text] #

Searching

breakOnAll :: Text -> Text -> [(Text, Text)] #