From lafeber@zonnet.nl Wed Mar 21 11:33:49 2001
Received: from relay2.zonnet.nl (relay2.zonnet.nl [62.58.50.38])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f2LAXn312430
	for <prolog@swi.psy.uva.nl>; Wed, 21 Mar 2001 11:33:49 +0100 (MET)
Received: from mail3.zonnet.nl ([10.170.1.24]) by
          relay2.zonnet.nl (Netscape Messaging Server 4.15) with ESMTP id
          GAJMQ604.I9V for <prolog@swi.psy.uva.nl>; Wed, 21 Mar 2001
          11:34:54 +0100 
Received: from zonnet.nl ([10.170.1.31]) by mail3.zonnet.nl
          (Netscape Messaging Server 4.15) with ESMTP id GAJMQ600.RF5 for
          <prolog@swi.psy.uva.nl>; Wed, 21 Mar 2001 11:34:54 +0100 
From: "Philip  Lafeber" <lafeber@zonnet.nl>
To: prolog@swi.psy.uva.nl
Message-ID: <31601d318e1c.318e1c31601d@zonnet.nl>
Date: Wed, 21 Mar 2001 10:34:54 GMT
X-Mailer: Netscape Webmail
MIME-Version: 1.0
Content-Language: nl
X-Accept-Language: nl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Subject: [SWIPL] Unsubscribe



>From Holland  \/
              /\      _ 
  ,,,         MM    /|-|~           _
--+++--------JMML------------------/ \~~~~~~
 tulip       mill   cow           dyke\ sea

----- Origineel Bericht -----
Van: Michael J Lew <mlew@cs.ucr.edu>
Datum: Dinsdag 20 Maart 2001 22:46
Onderwerp: [SWIPL] Basic Newby question

> I'm having trouble extracting facts to a list...
> I can't seem to figure out how to for example - extract
> all the names of the happy people to a list, because there
> is no 'non member' function so i end up with infinate
> recursion with the first matching rule inserted to the
> list an infinte number of times.
> 
> mood(bob,happy).
> mood(chirs,angry).
> mood(sally,happy).
> 
> find_mood(Mood,[Head|Tail])
> mood(Name,Mood),
> Head = [X|Head],
> find_mood(Mood,[Tail]).
> 
> I think what I need a how to determine that something is
> not a member, i just have no idea how to accomplish this
> Thanks
> 
> Michael Lew
> 
> 
> ----------------
> * To UNSUBSCRIBE, please use the HTML form at
> 
>    http://www.swi.psy.uva.nl/projects/SWI-
> Prolog/index.html#mailinglist
> or send mail to prolog-request@swi.psy.uva.nl using the Subject: 
> "unsubscribe"(without the quotes) and *no* message body.
> 
> ** An ARCHIVE of this list is maintained at
> 
>    http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglis
> 
> 

