List Manipulation Functions

APPEND makes a new list consisting of the members of its argument lists. APPEND takes any number of arguments.


(APPEND '(A) '(B))       =  (A B)

(APPEND '(A B) '(C D))   =  (A B C D)

(APPEND '(A) '(B) '(C))  =  (A B C)

REVERSE makes a new list that is the reverse of the top level of the list given as its argument.


(REVERSE '(A B))         =  (B A)

(REVERSE '((A B)(C D)))  =  ((C D)(A B))

LENGTH returns the length of the top level of the list given as its argument.


(LENGTH '(A))      =  1
(LENGTH '(A B))    =  2
(LENGTH '((A B)))  =  1

Contents    Page-10    Prev    Next    Page+10    Index