Subject: Re: READ-SEQUENCE
From: Erik Naggum <erik@naggum.no>
Date: 1995/08/10
Newsgroups: comp.lang.lisp
Message-ID: <19950810T145726Z@naggum.no>

[Marco Antoniotti]

|   can anybody post the ANSI definition (at least the signature) of
|   READ-SEQUENCE?

read-sequence (sequence stream &key start end)
=> position

Description:
Destructively modifies /sequence/ by replacing the elements of /sequence/
bounded by /start/ and /end/ with elements read from /stream/.

Example:
(defvar *data* (make-array 15 :initial-element nil))
(values (read-sequence *data* (make-string-input-stream "test string")) *data*)
=>  11, #(#\t #\e #\s #\t #\Space #\s #\t #\r #\i #\n #\g NIL NIL NIL NIL)

Note:
read-sequence is identical in effect to iterating over the indicated
subsequence and reading one element at a time from stream and storing it
into sequence, but may be more efficient than the equivalent loop.  An
efficient implementation is more likely to exist for the case where the
sequence is a vector with the same element type as the stream.

#<Erik 3017055445>
-- 
#<Xyzzy 202B370B73>