[movitz-cvs] CVS movitz/losp/muerte
ffjeld
ffjeld at common-lisp.net
Mon Apr 14 21:06:47 UTC 2008
Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory clnet:/tmp/cvs-serv21646
Modified Files:
lists.lisp
Log Message:
Added revappend.
--- /project/movitz/cvsroot/movitz/losp/muerte/lists.lisp 2008/03/20 22:21:31 1.25
+++ /project/movitz/cvsroot/movitz/losp/muerte/lists.lisp 2008/04/14 21:06:47 1.26
@@ -9,7 +9,7 @@
;;;; Created at: Tue Dec 5 18:40:11 2000
;;;; Distribution: See the accompanying file COPYING.
;;;;
-;;;; $Id: lists.lisp,v 1.25 2008/03/20 22:21:31 ffjeld Exp $
+;;;; $Id: lists.lisp,v 1.26 2008/04/14 21:06:47 ffjeld Exp $
;;;;
;;;;------------------------------------------------------------------
@@ -197,6 +197,13 @@
(unless copied-result
(setf copied-result copy))))))))
+(defun revappend (list tail)
+ "=> result-list"
+ (do () ((null list)
+ tail)
+ (push (pop list)
+ tail)))
+
(defun copy-list (list)
(if (null list)
nil
More information about the Movitz-cvs
mailing list