Igor Kondrasovas wrote: > I have an external application that currently invokes some queries I > created in ECLIPSE from Windows Command Prompt. At the end of the query, > I use the writeln predicate the output results back to the calling > application. However this output is a collection with several elements > and the output is formatted to suppress the last elements, like this: > > 2, 10), (4, 22), (..., ...), ...] > > I would like to know how can I format this output to write every > collection elements in the output… See chapter "Term output formats" in the user manual http://www.eclipseclp.org/doc/userman/umsroot061.html You can use writeq(X) or write_term(X, [depth(full)]) or printf("%Dw", [X]). -- JoachimReceived on Sun Sep 12 2010 - 02:43:25 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST