38 lines
671 B
Plaintext
38 lines
671 B
Plaintext
;; Function To Be Tested: REST
|
|
;;
|
|
;; Source: Guy L Steele's CLTL
|
|
;; Section: 15.2 Lists
|
|
;; Page: 266
|
|
;;
|
|
;; Created By: Kelly Roach
|
|
;;
|
|
;; Creation Date: June 27,1986
|
|
;;
|
|
;; Last Update: June 27,1986
|
|
;;
|
|
;; Filed As: {ERIS}<LISPCORE>CML>TEST>15-2-REST.TEST
|
|
;;
|
|
;;
|
|
;; Syntax: (REST LIST)
|
|
;;
|
|
;; Function Description:
|
|
;; REST means the same as CDR but mnemonically complements FIRST.
|
|
;; macro SETF may be used with REST to replace the CDR of a list
|
|
;; with a new value.
|
|
;;
|
|
;; Argument(s): LIST - a list
|
|
;;
|
|
;; Returns: anything
|
|
;;
|
|
|
|
|
|
|
|
(DO-TEST "TEST REST0"
|
|
;;
|
|
;; The tests were incorporated in the test file "15-1-cdr-and-rest.test"
|
|
;;
|
|
t
|
|
)
|
|
|
|
STOP
|