[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Out-of-range subsequences
- To: common-lisp@su-ai.arpa
- Subject: Out-of-range subsequences
- From: Daniels.pa@Xerox.COM
- Date: Tue, 17 Jun 1986 18:43:00 -0000
- Cc: Daniels.pa@Xerox.COM
Is it an error for a subsequence description to index elements that are
"off the end" of a sequence? By analogy with ELT, it should be, but I
have seen a couple of implementations that quietly take the intersection
of the intervals and go on from there? This would be true for SUBSEQ as
well as any sequence function that allows :START and :END keywords.
In particular, is (subseq #(1 2 3) 0 5) an error?
-- Andy. --