read-element

Reads the next element from the stream and advances the stream’s position.

When the stream is past the end of the contents, two possible results occur.  If the caller supplied a value to the on-end-of-stream: keyword, then that value is returned.  Otherwise, read-element throws an <end-of-stream-error>.

Exported from

Modifiers

open

Arguments

streamAn instance of <stream>.
on-end-of-stream:An instance of <object>.  The default is $not-supplied.

Values

element-or-eofAn instance of <object> or the value on-end-of-stream:.
Reads the next element from the stream and advances the stream’s position.
A class.
The streams-protocol module.
The streams module.
The superclass of all stream classes.
The class of all Dylan objects.
A constant.