POSITION:028,114
COLOUR:STANDARD
TEXT:00,If two sequence variables or values are involved in a binary expression,
TEXT:16,both sequence lengths must be the same. For example, you cannot have an
TEXT:16,expression that tries to add a five element sequence and a six element
TEXT:16,sequence together to produce a result. You can, however, use sequences
TEXT:16,that are the same length but with different element types. This means you
TEXT:16,can add a sequence composed of atoms to a sequence composed of sequences.
TEXT:16,This program example helps clarify this point:
COLOUR:EUPHORIA
TEXT:32,sequence seq1, seq2
TEXT:32,seq1 = {1,0,1,0,1} or {0,1,0,1,0}
TEXT:16,seq2 = {2,{2,2},2} + {{2,2},2,{2,2}}
COLOUR:STANDARD
TEXT:32,Variable "seq1" is assigned a value of {1,1,1,1,1}, while "seq2" is
TEXT:16,assigned a value of {{4,4},{4,4},{4,4}}. The rule of atoms and sequences
TEXT:16,in a binary expression was used in working out "seq2"'s value.

