13 lines
242 B
Plaintext
13 lines
242 B
Plaintext
# Lists are created by grouping items in partheses and separating them with
|
|
# commas.
|
|
|
|
numbers = (1, 2, 3);
|
|
|
|
# To access the values in a list, use an integer as an index.
|
|
|
|
x = numbers.0;
|
|
y = numbers.1;
|
|
z = numbers.2;
|
|
|
|
assert_equal(x + y, z);
|