(nthcdr 0 '())
→(nthcdr 3 '())
→(nthcdr 0 '(a b c))
→(A B C)
(nthcdr 2 '(a b c))
→(C)
(nthcdr 4 '(a b c))
→(nthcdr 1 '(0 . 1))
→1
(locally (declare (optimize (safety 3))) (nthcdr 3 '(0 . 1)))
✖Error: Attempted to take CDR of 1.
None.
None.
Should signal an error of type type-error if n is not a non-negative integer.
For n being an integer greater than 1
, the error checking done by (nthcdr n list)
is the same as for (nthcdr (- n 1) (cdr list))
; see the function cdr.
To be done.
None.
\issue{DOTTED-LIST-ARGUMENTS:CLARIFY} \issue{ARGUMENTS-UNDERSPECIFIED:SPECIFY}