X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=genutils.lisp;h=cee438bcbf53ff4f5235015a45455aedf8efbc5d;hb=d1e9c5969a0eecb7923dc350754ea9ab50417a1e;hp=cc7935a0c21c6f84e7a4f86d293e39b66be0e688;hpb=0785aaa6c33301cdb5d23ab1a09f262d33dba21d;p=kmrcl.git diff --git a/genutils.lisp b/genutils.lisp index cc7935a..cee438b 100644 --- a/genutils.lisp +++ b/genutils.lisp @@ -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 ;;;; @@ -551,3 +551,9 @@ (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))