isEmpty : String -> Bool
La chaîne est-elle vide ?
import nécessaire.isEmpty : String -> Boolhead : String -> Maybe Chartail : String -> Maybe Stringreverse : String -> Stringcons : Char -> String -> StringtoList : String -> List CharfromList : List Char -> Stringconcat : List String -> StringshowInt : Int -> Stringunlines : List String -> Stringunwords : List String -> StringisEmpty : String -> Bool
La chaîne est-elle vide ?
head : String -> Maybe Char
Premier caractère d'une chaîne (Nothing si vide). Totale, comme List.head — oppi n'a pas de fonctions partielles.
tail : String -> Maybe String
Tous les caractères sauf le premier (Nothing si vide). Totale, comme List.tail.
reverse : String -> String
Renverse les caractères d'une chaîne.
cons : Char -> String -> String
Ajoute un caractère en tête d'une chaîne.
toList : String -> List Char
Convertit une String en une List de caractères.
fromList : List Char -> String
Convertit une List de caractères en une String.
concat : List String -> String
Concatène une liste de chaînes : String.concat ["a", "b"] = "ab". La version spécifique aux chaînes du concat général (Core.Monoid).
showInt : Int -> String
Convertit un Int en sa représentation décimale sous forme de chaîne.
unlines : List String -> String
Concatène une liste de chaînes en ajoutant un retour à la ligne après chacune. unlines ["a", "b"] = "a\nb\n"
unwords : List String -> String
Concatène une liste de chaînes en les séparant par une seule espace. unwords ["a", "b", "c"] = "a b c"