From ... From: Erik Naggum Subject: Re: READ-SEQUENCE Date: 1995/08/10 Message-ID: <19950810T145726Z@naggum.no>#1/1 X-Deja-AN: 107914852 references: organization: Naggum Software; +47 2295 0313 newsgroups: comp.lang.lisp [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. # -- #