r3982: Auto commit for Debian build
[kmrcl.git] / genutils.lisp
index cc7935a0c21c6f84e7a4f86d293e39b66be0e688..cee438bcbf53ff4f5235015a45455aedf8efbc5d 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: genutils.lisp,v 1.14 2003/01/13 21:40:20 kevin Exp $
+;;;; $Id: genutils.lisp,v 1.15 2003/02/07 14:21:55 kevin Exp $
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
             (format t ", time per iteration: ")
             (print-seconds (coerce (/ secs ,n) 'double-float))))))))
 
+
+(defun nsubseq (sequence start &optional (end (length sequence)))
+  (make-array (- end start)
+             :element-type (array-element-type sequence)
+             :displaced-to sequence
+             :displaced-index-offset start))