peek

Reads the next element from the stream but does not advance the stream’s position.  Handles end-of-stream conditions just as read-element does.

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.
The streams-protocol module.
The streams module.
The superclass of all stream classes.
The class of all Dylan objects.
A constant.