projects
/
kmrcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r4659: *** empty log message ***
[kmrcl.git]
/
genutils.lisp
diff --git
a/genutils.lisp
b/genutils.lisp
index cc7935a0c21c6f84e7a4f86d293e39b66be0e688..cee438bcbf53ff4f5235015a45455aedf8efbc5d 100644
(file)
--- a/
genutils.lisp
+++ b/
genutils.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: genutils.lisp,v 1.1
4 2003/01/13 21:40:20
kevin Exp $
+;;;; $Id: genutils.lisp,v 1.1
5 2003/02/07 14:21:55
kevin Exp $
;;;;
;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; 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))))))))
(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))