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

From: Federico Ferri <federico.ferri.it_at_...6...>
Date: Mon, 2 Feb 2015 08:27:38 +0100
use member/2 for filtering?

?-  Result = [goodsinfo(101, "laptop", "tablet", "iPad"), goodsinfo(102, "notebook",
 "pendrive", "tab")],
    member(X, Result),
    X=goodsinfo(101, _, _, _).

X = goodsinfo(101, "laptop", "tablet", "iPad") ;
false.



On 2 Feb 2015 at 07:59:42, Edgaonkar, Shrirang (shrirang.edgaonkar@...394....) wrote:
> > Result = [goodsinfo(101, "laptop", "tablet", "iPad"), goodsinfo(102,  
> "notebook",
> "pendrive", "tab")]
Received on Mon Feb 02 2015 - 07:27:47 CET

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