Language Guide

CHAPTER 3
Values
34 Using Value Class Denitions
Figure 3-1 Value class denition for lists
LITERAL EXPRESSIONS
A value of class List is an ordered collection of values. The values
contained in a list are known as items. Each item can belong to
any class.
List
A list appears in a script as a series of expressions contained within braces
and separated by commas. For example,
{ "it's", 2, TRUE }
is a list containing a string, an integer, and a Boolean.
PROPERTIES
ELEMENTS
A value contained in the list. Each value contained in a list is
an item. You can refer to values by their item numbers. For
example, item 2 of {"soup", 2, "nuts"} is
the
integer 2. To specify items of a list, use the reference forms
listed in "Reference Forms" later in this definition.
The class identifier for the value. This property is read-only,
and its value is always list.
An integer containing the number of items in the list. This
property is read-only.
A list containing all items in the list except the first item.
A list containing all items in the list, but in the opposite order.
Class
Length
Rest
Reverse
Item
OPERATORS
The operators that can have lists as operands are &, =, , Starts With, Ends
With, Contains, Is Contained By.