Skip to main content
Version: Next

peek_char/2

Description

peek_char/2 is a predicate that peeks at the next character from a stream without consuming it.

Signature

peek_char(+Stream, ?Char)

Where:

  • Stream is the stream to peek from.
  • Char is unified with the next character.