POSITION:028,114
COLOUR:STANDARD
TEXT:00,The & operator joins together expressions that evaluate into atom or
TEXT:16,sequence values to form new sequences. The result is a sequence that is
TEXT:16,as long as (in elements) the total sum of the lengths of the atoms and
TEXT:16,sequences used in the joining. For example, joining a four element long
TEXT:16,sequence with an atom gives a five element long sequence. This program
TEXT:16,example demonstates the results of several joining attempts:
COLOUR:EUPHORIA
TEXT:32,sequence s1, s2, s3
TEXT:32,s1 = 5 & 4
COLOUR:POINTS
TEXT:00,                                    s1 is assigned {5,4}
COLOUR:EUPHORIA
TEXT:16,s2 = 90 & {30,60}
COLOUR:POINTS
TEXT:00,                                    s2 is assigned {90,30,60}
COLOUR:EUPHORIA
TEXT:16,s3 = {{1,1},{2,2,2}} & {3,3,3} + 1
COLOUR:POINTS
TEXT:00,                                    s3 is assigned {{1,1},{2,2,2},4,4,4}
COLOUR:STANDARD
TEXT:32,Congratulations! You now understand the basic concepts of Euphoria! Feel
TEXT:16,free to review the previous chapters again. A full understanding of the
TEXT:16,core concepts is needed to learn the topics in the next chapters ahead.
