ELT on lists does not signal an error when given an invalid index.
The accessor ELT does not signal an error when given an invalid index.
(let ((f (compile nil '(lambda (list) (declare (type list list) (optimize (speed 1) (safety 1) (compilation-speed 1) (space 1) (debug 1))) (elt list 3))))) (funcall f (list 0 1 2))) => nil
An error is signalled when performing one of the following:
- SAFETY is changed to 3.
- The type LIST is changed to SEQUENCE.