From bill@billnet.org Thu Feb  8 01:46:00 2001
Received: from hawk.prod.itd.earthlink.net (hawk.prod.itd.earthlink.net [207.217.120.22])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f180jwZ01798
	for <prolog@swi.psy.uva.nl>; Thu, 8 Feb 2001 01:45:59 +0100 (MET)
Received: from computer.billnet.org (pool-63.52.1.71.atln.grid.net [63.52.1.71])
	by hawk.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id QAA16190
	for <prolog@swi.psy.uva.nl>; Wed, 7 Feb 2001 16:45:55 -0800 (PST)
Message-Id: <5.0.2.1.0.20010207194715.009f5d80@mail.earthlink.net>
X-Sender: billhworth@mail.earthlink.net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Wed, 07 Feb 2001 19:49:37 -0500
To: prolog@swi.psy.uva.nl
From: Bill Hollingsworth <bill@billnet.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Subject: [SWIPL] 

 >How do you explain the confusion between a number N and a list of a number
 >[N]?
 > For instance, "?- [2]<3." succeeds and "?- X is [2]+3." leads to X=5.
 >Jean-louis Bouquard

A set containing the element n is different from the element n. In Prolog, 
the list containing a number n is denoted [n]. [n] is not a  number; it is 
a list containing a number. Similarly, [] is different from  [[]]. The 
first is the empty list and the second is the one element list which has 
the empty list as its element.


Bill Hollingsworth
Computer Science Department
The University of Georgia
http://www.billnet.org

