PROPER-LIST-LENGTH and related changes
- New function: PROPER-LIST-LENGTH. - Share code between PROPER-LIST-LENGTH, LASTCAR, and SETF LASTCAR via a macrolet. - Use ENDP wrapped in SAFETY 3, to ensure proper detection of dotted lists. - Use PROPER-LIST-LENGTH instead of LIST-LENGTH in ROTATE, RANDOM-ELT, and SHUFFLE, and test that they signal an error for improper lists. (Thanks to Tobias Rittweiler)
parent
3f0815c8
Please register or sign in to comment