X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=seqs.lisp;h=b2a7508282785cf78acbcc3fb1a2747e1a1a1337;hb=606b476d83ebdc137aa32abd0b6c31ce8fa117de;hp=92a4aa05818cce6454f0de95de635de031b440e8;hpb=b7af043786744aaf0b67a5ee6f4d42a647dc738d;p=kmrcl.git diff --git a/seqs.lisp b/seqs.lisp index 92a4aa0..b2a7508 100644 --- a/seqs.lisp +++ b/seqs.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: seqs.lisp,v 1.1 2003/04/29 00:26:21 kevin Exp $ +;;;; $Id: seqs.lisp,v 1.3 2003/05/04 15:09:59 kevin Exp $ ;;;; ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -59,11 +59,11 @@ (cdr lb) (concatenate 'string accum (funcall func a b))) accum))) - -(defun nsubseq (sequence start &optional (end (length sequence))) +(defun nsubseq (sequence start &optional end) "Return a subsequence by pointing to location in original sequence" + (unless end (setq end (length sequence))) (make-array (- end start) :element-type (array-element-type sequence) :displaced-to sequence