Previous Up Next

2.4.9  Add an object to a string : +

+ is an infixed operator (resp ’+’ is a prefixed operator.
If + (resp ’+’) takes as argument a string (resp. a sequence of objects with a string as first or second argument), the result is the concatenation of these objects into a string.
warning
+ is infixed and ’+’ is prefixed.
Input :

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

Ou on tape :

"abcd"+3+"d"

Output :

"abcd3d"

Input :

c:=5

Then input:

"abcd"+c+"e"

Or input:

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

Output :

"abcd5e"

Previous Up Next