rio-0.1.20.0: A standard library for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

RIO.Text.Partial

Description

Strict Text partial functions. Import as:

import qualified RIO.Text.Partial as T'
Synopsis

Basic interface

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)] #

Indexing

count :: Text -> Text -> Int #