[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: DLW@QUABBIN.SCRC.Symbolics.COM, Daniels.pa@Xerox.COM, common-lisp@SU-AI.ARPA
- Subject: Out-of-range subsequences
- From: Guy Steele <gls@Think.COM>
- Date: Wed, 18 Jun 86 17:48 EDT
- Cc: gls@AQUINAS
- In-reply-to: <860618082448.8.DLW@CHICOPEE.SCRC.Symbolics.COM>
Date: Wed, 18 Jun 86 08:24 EDT
From: Daniel L. Weinreb <DLW@QUABBIN.SCRC.Symbolics.COM>
Date: 17 Jun 86 14:43 PDT
In particular, is (subseq #(1 2 3) 0 5) an error?
What an excellent example of the sort of thing that the manual really
needs to be more explicit about.
Our implementation signals an error. It certainly seems to me
that it ought to.
About the best I have to offer is that the manual says that
start and end "should be integer indices into the sequence".
I would interpret "into the sequence" and meaning "between 0 and
the length of the sequence, inclusive", but I grant that there is
considerable latitude for controversy here.