1.4.8 Lists
List functions can also be found in the sections on Association Lists, Sets, and Sequences.
syntax
(cons x y)
syntax
(consp x)
Examples: | ||||||||||
|
syntax
(append lst ...)
Examples: | ||||||
|
procedure
(binary-append x y) → t
x : (true-listp x) y : t
Examples: | ||||||||||||||
|
syntax
(mv x ...)
Example: | ||
|
procedure
x : (true-listp x) y : t
Examples: | ||||||||
|
syntax
(list elem ...)
syntax
(list* elem ... tail)
procedure
(atom-listp x) → t
x : t
Examples: | ||||
|
procedure
(character-listp x) → t
x : t
Examples: | ||||
|
procedure
(eqlable-listp x) → t
x : t
Examples: | ||||||
|
procedure
(integer-listp x) → t
x : t
Examples: | ||||||
|
procedure
(keyword-value-listp x) → t
x : t
Examples: | ||||
|
procedure
(proper-consp x) → t
x : t
Examples: | ||||||
|
procedure
(rational-listp x) → t
x : t
Examples: | ||||
|
procedure
(standard-char-listp x) → t
x : t
Examples: | ||||
|
procedure
(string-listp x) → t
x : t
Examples: | ||||
|
procedure
(symbol-listp x) → t
x : t
Examples: | ||||
|
procedure
(true-list-listp x) → t
x : t
Examples: | ||||
|
procedure
(true-listp x) → t
x : t
Examples: | ||||
|
Examples: | ||||||
|
procedure
(fix-true-list x) → t
x : t
Examples: | ||||||||
|
procedure
(make-list n) → true-listp
n : (and (integerp n) (<= 0 n))
procedure
x : (or (true-listp x) (stringp x))
procedure
(update-nth n v lst) → t
n : (and (integerp n) (<= 0 n)) v : t lst : (true-listp l)
Examples: | ||||
|
syntax
(first lst)
syntax
(second lst)
syntax
(third lst)
syntax
(fourth lst)
syntax
(fifth lst)
syntax
(sixth lst)
syntax
(seventh lst)
syntax
(eighth lst)
syntax
(ninth x)
syntax
(tenth lst)
syntax
(last lst)
syntax
(rest lst)