Adding an object to a string

### 5.2.13 Adding an object to a string

The ’+’ command can be used like cat (see Section 5.2.12), and the + operator is the infixed version. (See Section 8.3.1 for other uses of + and ’+’.)

- ’+’ takes seq, a sequence of objects, at least one of which is a string.
- ’+’(seq) returns the concatenation of the string representations of the objects in seq.

##### Remark.

Note that + is infixed and ’+’ is prefixed.

#### Examples

'+'("abcd",3,"d")

or:

"abcd"+3+"d"

“abcd3d” |  |  |  |  |  |  |  |  |  |

c:=5

then:

"abcd"+c+"d"

or:

'+'("abcd",c,"d")

“abcd5d” |  |  |  |  |  |  |  |  |  |