Skip to content
  1. Jan 26, 2013
  2. Apr 26, 2012
    • Nikodemus Siivola's avatar
      tweak EXTREMUM · 0c39310e
      Nikodemus Siivola authored
       Return NIL if the sequence is empty, instead of the NO-EXTREMUM nonsense.
      
       It was bad design, because it's not an error someone higher up the stack can
       sensibly handle, and handling it locally is too verbose and slow.
      
          (or (extremum ...) (error ...))
      
       expresses the common case succintly, and fits the pattern of existing
       sequence functions.
      
       If it is deemed necessary, we can also add &KEY DEFAULT, but that seems
       overkill and has little precedent in sequence functions.
      0c39310e
  3. Apr 25, 2012
  4. Apr 22, 2012
  5. Mar 30, 2012
  6. Jan 20, 2012
    • tpapp's avatar
      generic MEAN and MEDIAN, new function DISPLACE-ARRAY · 485544d4
      tpapp authored
       Objects other than sequences have means and medians (eg probability
       distributions, arrays, sequences/arrays wrapped in another object, etc), so
       it makes sense to make these functions generic.
      
       DISPLACE-ARRAY is a small utility function that is used in the implementation
       of MEDIAN for arrays, but is also of general utility because it makes the
       creation of displaced arrays simpler, dispensing with the need to specify the
       element type, and offering sensible defaults when one wants vectors.
      
       Also added tests for all the new functions/methods.
      485544d4
    • Jyrki Jaakkola's avatar
      36800ad1
  7. Nov 09, 2011
  8. Nov 02, 2011
  9. Oct 29, 2011
  10. Sep 23, 2010
  11. Apr 05, 2010
  12. Mar 09, 2010
  13. Feb 12, 2010
  14. Nov 01, 2009
  15. Sep 16, 2009
  16. Jul 27, 2008
  17. Aug 01, 2008
    • 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
  18. May 31, 2008
  19. May 29, 2008
  20. Apr 10, 2008
  21. Mar 11, 2008
    • Tobias C. Rittweiler's avatar
      alexandria-unwind-protect-case.diff · b63df871
      Tobias C. Rittweiler authored
      	* conditions.lisp (unwind-protect-case): New macro. Similiar to
      	CL:UNWIND-PROTECT except that it's possible to explicitly specify
      	under which circumstances cleanup operations are run.
      
      	* tests.lisp (unwind-protect-case.1-5): New test cases.
      b63df871
  22. Mar 13, 2008
    • Tobias C. Rittweiler's avatar
      alexandria-cdr5-types.diff · b22134cc
      Tobias C. Rittweiler authored
      	* types.lisp: Fix quoting problem introduced by Attila's last
      	patch; additionally add automatically generated docstrings to all
      	the types defined.
      
      	* tests.lisp (cdr5.*): New test cases.
      b22134cc
  23. Mar 11, 2008
  24. Feb 17, 2008
  25. Dec 19, 2007