next up previous contents index
Next: The Listener and Up: Introduction to Basics Previous: Introduction to Basics

Data

XLISP-STAT works with two kinds of data: simple data  and compound data . Simple data are numbers

1                   ; an integer
-3.14               ; a floating point number
#C(0 1)             ; a complex number (the imaginary unit)
logical values
T                   ; true
nil                 ; false
strings (always enclosed in double quotes)
"This is a string 1 2 3 4"
and symbols (used for naming things; see the following section)
x
x12
12x
this-is-a-symbol
Compound data are lists 
(this is a list with 7 elements)
(+ 1 2 3)
(sqrt 2)
or   vectors
#(this is a vector with 7 elements)
#(1 2 3)
Higher dimensional arrays are another form of compound data; they will be discussed below in Section 9.

All the examples given above can be typed directly into the command window as they are shown here. The next subsection describes what XLISP-STAT will do with these expressions.



Luke Tierney
Tue Jan 21 15:04:48 CST 1997