A generic function used by peek-char that returns a character on a given stream without removing it from the stream buffer.
stream
stream-peek-char stream => result
stream⇩ |
A stream. |
result |
A character or :eof . |
The generic function stream-peek-char
is used to implement peek-char, and corresponds to a peek-type of nil
. The default method specializes stream on fundamental-stream and reads a character from the stream without removing it from the stream buffer, by using stream-read-char and stream-unread-char.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:01