Reads a group of elements from a stream into a collection.
Reads in n elements from the stream starting from the the stream’s current position and places those elements into sequence. sequence must be mutable to allow it to expand should the streamed-in elements be larger than its original size. Handles end-of-stream conditions just as read-element does.
open
| stream | An instance of <stream>. |
| n | An instance of <integer>. Number of elements to read. |
| sequence | An instance of <mutable-sequence>. This sequence must allow for changes in its size. |
| start: | An instance of <integer>. What index to start writing into the sequence. The default is 0. |
| on-end-of-stream: | An instance of <object>. Value returned if reading past the stream. The default is $not-supplied. |
| count-or-eof | An instance of <integer> or the value on-end-of-stream:. The number of elements transferred. |