Re: [eclipse-clp-users] Command Prompt Query

From: Joachim Schimpf <joachim.schimpf_at_...269...>
Date: Sun, 12 Sep 2010 12:43:19 +1000
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]).

-- Joachim
Received on Sun Sep 12 2010 - 02:43:25 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST