++ / length
Try it yourself →Concatenation and length.
Syntax
a ++ b // length s
Description
A String is a list of characters. ++ concatenates two texts/lists. length returns the number of characters/elements.
Example
main = do
putStrLn ("Hello " ++ "Alex")
print (length "HexLibrary")Expected output
Hello Alex 10
When to use?
Creating text, length check.