Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!news.sprintlink.net!news-peer.sprintlink.net!newsfeed.internetmci.com!torn!watserv3.uwaterloo.ca!kmayall
From: kmayall@cousteau.uwaterloo.ca (Kevin Mayall)
Subject: Re: Using set-difference
Message-ID: <Dy5CJD.Exo@watserv3.uwaterloo.ca>
Sender: news@watserv3.uwaterloo.ca
Nntp-Posting-Host: cousteau.uwaterloo.ca
Organization: University of Waterloo
References: <Dy5C6s.EMD@watserv3.uwaterloo.ca>
Date: Sun, 22 Sep 1996 18:26:01 GMT
Lines: 25

In article <Dy5C6s.EMD@watserv3.uwaterloo.ca>,
Kevin Mayall <kmayall@cousteau.uwaterloo.ca> wrote:
>I can't seem to understand why the second expression below does not
>return ((A) (C)).  Can anyone provide some insight?   
>
>> (set-difference '(a b c) '(d e b f))
>(A C)
>> (set-difference '((a) (b) (c)) '((d) (e) (b) (f)))
>((A) (B) (C))

Sorry - of course, it dawned on me five minutes after posting.
Set-difference uses #'eql as the default, when I should be testing
for #'equal.

Thanks anyway........

	Kev



-- 
--------------------------------Bermuda Massive
Kevin Mayall               kmayall@uwaterloo.ca
         http://www.fes.uwaterloo.ca/u/kmayall/
     School of Planning, University of Waterloo
