Skip to main content
Version: v15.0.0

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.