POSITION:028,114
COLOUR:STANDARD
TEXT:00,Let's look at the statement that works out the new rents more closely:
COLOUR:EUPHORIA
TEXT:32,new_rents = old_rents * rent_increase
COLOUR:STANDARD
TEXT:32,When using both atom and sequence variables or values in a binary
TEXT:16,expression (something that is made up of two parts), the atom part is
TEXT:16,replaced with a temporary sequence value that is as long as the other
TEXT:16,sequence. This is done before the expression is evaluated. As a result,
TEXT:16,variable "rent_increase"'s value becomes {1.05,1.05,1.05,1.05,1.05}.
TEXT:16,So, the above expression is then worked out in the following manner:
COLOUR:POINTS
TEXT:32,Element 1 of "old_rents" (413) X Element 1 of temporary sequence (1.05)
TEXT:16,Element 2 of "old_rents" (500) X Element 2 of temporary sequence (1.05)
TEXT:16,Element 3 of "old_rents" (435) X Element 3 of temporary sequence (1.05)
TEXT:16,Element 4 of "old_rents" (619) X Element 4 of temporary sequence (1.05)
TEXT:16,Element 5 of "old_rents" (372) X Element 5 of temporary sequence (1.05)

