next up previous index
Next: Filter expressions Up: Expressions Previous: The connection operator

& operator

The & operator can be used to concatenate lists or character strings.

When dealing with lists, the two arguments must be lists themselves. For instance, if PrimesList is initialized as:

PrimesList := {2,3,5,7,11}

evaluating

PrimesList & 13

would result in an error; while

PrimesList & {13}

would yield a list which value is {2,3,5,7,11, 13}. Similarly, evaluating

"Hello" & " " & "world"

yields ``Hello world''.