| |||||||||||
| retrieve the character at the current stream position.
peek_char(?Char)
| |||||||||||
| peek_char('a'). | Succeeds. The stream position will not be altered. |
| peek_char(C). | Succeeds with substitution(C<-'a'). The stream position will not be altered. |
These predicates are part of the ISO-Prolog Standard.
get_char/1/2, get_code/1/2, peek_code/1/2, put_char/1/2, put_code/1/2, nl/0/1, set_input/1, current_input/1.
| document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/char_io/peek_char/print_en.html published 2008/10/13 update 2001/8/28 (c) 1996-2006 IF Computer Japan | ||||||||
|
| Back> |
|