Did you know ... Search Documentation:
Pack canny_tudor -- prolog/print/table.pl
PublicShow source
 print_table(:Goal) is det
 print_table(:Goal, +Variables:list) is det
Prints all the variables within the given non-deterministic Goal term formatted as a table of centre-padded columns to current_output. One Goal solution becomes one line of text. Solutions to free variables become printed cells.

Makes an important assumption: that codes equate to character columns; one code, one column. This will be true for most languages on a teletype like terminal. Ignores any exceptions by design.

?- print_table(user:prolog_file_type(_, _)).
+------+----------+
|  pl  |  prolog  |
|prolog|  prolog  |
| qlf  |  prolog  |
| qlf  |   qlf    |
| dll  |executable|
+------+----------+

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 print_table(Arg1, Arg2)