ADDED: format/3, writing formatted output to a stream

Both binary and text streams are supported.
This commit is contained in:
Markus Triska
2020-05-22 17:21:50 +02:00
parent 9e9c3b6342
commit cbbed310c5
2 changed files with 14 additions and 1 deletions

View File

@@ -353,7 +353,7 @@ The modules that ship with Scryer Prolog are also called
* [`format`](src/prolog/lib/format.pl)
The nonterminal `format_//2` is used to describe formatted output,
arranging arguments according to a given format string.
The predicates `format/2`, `portray_clause/1` and `listing/1`
The predicates `format/[2,3]`, `portray_clause/1` and `listing/1`
provide formatted *impure* output.
* [`assoc`](src/prolog/lib/assoc.pl)
providing `empty_assoc/1`, `get_assoc/3`, `put_assoc/4` etc.