'expression Section 3
Suppresses evaluation of expression. Equivalent to
(quote expression).
() Section 3
The empty list, synonymous with nil.
(+ ) Section 6
Returns . and must be expressions with
numerical values.
(- ) Section 6
Returns . and must be expressions with
numerical values.
(* ) Section 6
Returns . and must be expressions with
numerical values.
(/ ) Section 6
Returns . and must be expressions with
numerical values.
(= ) Section 4.1
Returns #t if and are numerically equal, ()
otherwise. and must be expressions with
numerical values.
(< ) Section 4.1
Returns #t if is numerically less than , ()
otherwise. and must be expressions with
numerical values.
(> ) Section 4.1
Returns #t if is numerically greater than , ()
otherwise. and must be expressions with
numerical values.
(<= ) Section 4.1
Returns #t if is numerically less than or equal to ,
() otherwise. and must be expressions with
numerical values.
(<= ) Section 4.1
Returns #t if is numerically greater than or equal to ,
() otherwise. and must be expressions with
numerical values.
(and predicate1 ... predicateN) Section 5
Evaluates its arguments from left to right, and returns nil
as soon as one of them evaluates to nil. If none of the arguments
evaluate to nil, it returns true.
(append list1 list2) Section 3.2
Returns the concatenation of list1 and list2.
(atom? expression) Section 4
Returns #t if expression is an atom or the empty list, ()
otherwise.
(car list) Section 3.2
Returns the head, or first element, of list.
(cdr list) Section 3.2
Returns the tail of list, i.e., a copy of list with the first
element removed.
(cond (
predicate1 consequent1) ... ( predicateN consequentN))
Section 5
Evaluates its
arguments from left to right; when predicateI returns true, the function
consequentI is evaluated and its return value is returned as the value of
the cond. An error occurs if none of the predicates returns true.
(cons elem list) Section 3.2
Returns a new list the same as list, but with elem inserted as the
head.
(eq? expression1 expression2) Section 4
Returns true if expression1 and expression2 are the same object,
false otherwise.
(equal? expression1 expression2) Section 4
Returns true if expression1 and expression2 are equivalent
objects; i.e., if they have the same list structure and their atoms are
equivalent.
(exit) Section 2
Exits XScheme and returns to the operating system.
(if predicate then-part else-part) Section 5
A special case of cond; if predicate evaluates to true, the
function then-part is evaluated and its return value is returned as the
value of the if. Otherwise, the same is done with the function
else-part.
(lambda args body) Section 9
Defines a nameless function, with arguments args and function body
body. args should be a list (arg1 arg2 ... argN).
(length expression) Section 3.2
Returns the length in number of elements of expression. The argument
expression must evaluate to a list.
(let ((var1 init1) (var2 init2) ...(varN initN))
body) Section 8
Within the scope of body, binds var1 to init1,
var2 to init2, etc. Returns the return value of body.
(list arg1 arg2 ...argN) Section 3
Returns a list of its arguments, (arg1 arg2 ...argN).
(list? expression) Section 4
Returns true if expression is a list, including the empty list,
false otherwise.
(load ``filename'') Section 2
Loads the text file specified by filename, just as though that text
were entered from the keyboard.
nil Section 3
The empty list, synonymous with ().
(not predicate) Section 4
Returns nil if predicate evaluates to true, otherwise returns true.
(null? expression) Section 4
Returns true if expression is nil or (), false otherwise.
(or predicate1 ... predicateN) Section 4
Evaluates its arguments from left to right, and returns true as soon as
one of them evaluates to true. If none of the arguments evaluate to true, it
returns nil.
(quote expression) Section 3
Suppresses evaluation of expression. Equivalent to
'expression.
(reset) Section 2
Resets any error condition and returns XScheme to the top level prompt.
(reverse expression) Section 3.2
Returns a list made up of the elements in expression, in reverse order.
The argument expression must evaluate to a list.
(transcript-on ``filename'') Section 2
Begins a transcript, echoing all input to XScheme and output from XScheme to
the file specified by filename.
(transcript-off) Section 2
Ends the transcript, closing the file specified by the earlier
transcript-on command.