[cl-utilities-cvs] CVS update: cl-utilities/extremum.lisp

Peter Scott pscott at common-lisp.net
Wed Dec 14 21:15:22 UTC 2005


Update of /project/cl-utilities/cvsroot/cl-utilities
In directory common-lisp.net:/tmp/cvs-serv23548

Modified Files:
	extremum.lisp 
Log Message:
Big improvement to the documentation. I actually added a manual instead of
simply telling people to look at the Cliki pages.

Also added a little more argument checking to N-MOST-EXTREME function.

Date: Wed Dec 14 22:15:15 2005
Author: pscott

Index: cl-utilities/extremum.lisp
diff -u cl-utilities/extremum.lisp:1.9 cl-utilities/extremum.lisp:1.10
--- cl-utilities/extremum.lisp:1.9	Wed Nov 30 01:07:15 2005
+++ cl-utilities/extremum.lisp	Wed Dec 14 22:15:15 2005
@@ -154,6 +154,7 @@
 elements in the relevant part of the sequence, this will return all
 the elements it can and signal the warning
 N-MOST-EXTREME-NOT-ENOUGH-ELEMENTS"
+  (check-type n (integer 0))
   (with-check-length (sequence start end)
     ;; This is faster on vectors than on lists.
     (let ((sequence (subseq sequence start end)))




More information about the Cl-utilities-cvs mailing list