cons +text

cons :: Char -> Text -> Text
text Data.Text.Lazy
O(n) Adds a character to the front of a Text. This function is more costly than its List counterpart because it requires copying a new array. Subject to fusion.
cons :: Char -> Text -> Text
text Data.Text
O(n) Adds a character to the front of a Text. This function is more costly than its List counterpart because it requires copying a new array. Subject to fusion. Performs replacement on invalid scalar values.
uncons :: Text -> Maybe (Char, Text)
text Data.Text, text Data.Text.Lazy
O(1) Returns the first character and rest of a Text, or Nothing if empty. Subject to fusion.