Function
Returns a sequence containing the elements of the stream up to, but not including, the first occurrence of a given element.
read-to input-stream element #key on-end-of-stream test =>
sequence-or-eof found?
<stream>.
<object>.
<object>.
<function>. Default value: ==.
<sequence>, or an instance of <object> if the end of the stream is reached.
<boolean>.
io
streams
Returns a new sequence containing the elements of input-stream from the stream's current position to the first occurrence of element. The result does not contain element.
The second return value is #t if the read terminated with element, or #f if the read terminated by reaching the end of the stream's source. The "boundary" element is consumed, that is, the stream is left positioned after element.
The read-to function determines whether the element occurred by calling the function test. This function must accept two arguments, the first of which is the element retrieved from the stream first and the second of which is element.
The type of the sequence returned is the same that returned by read. The end-of-stream behavior is the same as that of read-element.