Safe Haskell | Safe |
---|
Eta.Types.String
Description
- String operations
Documentation
Joins a [String]
appending a newline to each element
>>>
unlines ["Hello", "I'm Joe"]
"Hello\nI'm Joe\n"
Splits a String
into a [String]
at Char
s representing
white spaces.
>>>
words "How are you"
["How","are","you"]
Joins a [String]
appending a space to each element
>>>
unwords ["How", "are", "you"]
"How are you"