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_at_...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.3.0 : Wed Sep 25 2024 - 15:13:21 CEST