Re: [eclipse-clp-users] List of Structures

From: <mskala_at_...206...>
Date: Mon, 2 Feb 2015 03:29:01 -0600 (CST)
On Mon, 2 Feb 2015, Edgaonkar, Shrirang wrote:
> I am trying this.
> findall(goodsinfo{ goodsid:GoodsId, goodsname:GoodsName, term:Term, searchViews:Searchviews },(member(X, Result),  X=goodsinfo(101, _, _, _)),Sols),

The first argument of findall should be a variable that is given a value
by the success of the second argument.  If, as above, the first argument
does not occur in the second argument, it's almost certainly an error;
you're going to get a list of variables not bound to results.  Try this:


Matthew Skala
mskala@...206...                 People before principles.
Received on Mon Feb 02 2015 - 09:23:52 CET

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