I have: String = "there"
I have tried various things such as: "Hello " ++ String
and string:concat("Hello", String)
. The output always ends up with the literal string "Hello" being the integers representing the characters of the string, instead of the letters.
How can I combine a literal string and a string in a variable, in Erlang?
Works for me.
1> String = "there".
"there"
2> "Hello " ++ String.
"Hello there"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With