Previous Up Next

5.2.7  Concatenation of a list of strings

The concat and sum commands concatenate elements of a list of strings together into a single string.

The join command concatenates a list of strings after inserting a specified separator string between adjacent elements.

The cumSum command works on strings like it does on expressions by doing partial concatenation (see Section 6.3.26).

Examples

sum("Hello, ","is ","that ","you?")
     
“Hello, is that you?”           
join(" ",["Hello,","is","that","you?"])
     
“Hello, is that you?”           
cumSum("Hello, ","is ","that ","you?")
     
“Hello, ”,“Hello, is ”, “Hello, is that ”,“Hello, is that you?”           

Previous Up Next