• Nikodemus Siivola's avatar
    PROPER-LIST-LENGTH and related changes · 86f69d0a
    Nikodemus Siivola authored
    - 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)
    86f69d0a
tests.lisp 40.2 KB