Joining literal text to a variable (string concatenation) in Erlang

Viewed 5960

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?

1 Answers
Related