I want to concatenate strings in Haskell and also integers
from function like this:
arc 13 34 234 3
13 34 234 3 will be arguments of arc function and I want output like
"arc(13, 34, 234, 3)"
as a String how can I implement this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want
Stringoutput, the typical technique is to create aShowS, which is just another name forString -> String.The
[]at the end of the function call is just an empty string. It lets you attach data to the end without worrying aboutO(N)string concatenation.