[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to remove verbosity from the data passing mechanism using alist
From: |
Pascal J. Bourguignon |
Subject: |
Re: How to remove verbosity from the data passing mechanism using alist or plist ? |
Date: |
Wed, 08 Dec 2010 07:20:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
PJ Weisberg <pj@irregularexpressions.net> writes:
> On 12/7/10, Fren Zeee <frenzeee@gmail.com> wrote:
>
>> Yes it helped, but I cant honestly see the difference between
>> (a . b) <--- from cons
>> and
>> (a b) <--- from list
>>
>> both seem to be dotted pair although the dot is implicit in the second.
CL-USER> (COM.INFORMATIMAGO.COMMON-LISP.PICTURE.CONS-TO-ASCII:DRAW-LIST '(a .
b) :title "(a . b)")
+-------------------+
| (a . b) |
| |
| +---+---+ +---+ |
| | * | * |-->| B | |
| +---+---+ +---+ |
| | |
| v |
| +---+ |
| | A | |
| +---+ |
+-------------------+
CL-USER> (COM.INFORMATIMAGO.COMMON-LISP.PICTURE.CONS-TO-ASCII:DRAW-LIST '(a b)
:title "(a b)")
+-----------------------+
| (a b) |
| |
| +---+---+ +---+---+ |
| | * | * |-->| * |NIL| |
| +---+---+ +---+---+ |
| | | |
| v v |
| +---+ +---+ |
| | A | | B | |
| +---+ +---+ |
+-----------------------+
> No. The first is a dotted pair. The second is a list. I guess you
> *could* say a dot was implicit, but the "explicit" version would be
>
> (a . (b . nil))
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?, (continued)
Re: How to remove verbosity from the data passing mechanism using alist or plist ?, Thien-Thi Nguyen, 2010/12/07
Message not available
Message not available
Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?,
Pascal J. Bourguignon <=
Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: Fwd: How to remove verbosity from the data passing mechanism using alist or plist ?, Fren Zeee, 2010/12/13
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?, Miles Bader, 2010/12/13
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?, Fren Zeee, 2010/12/13
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?, Fren Zeee, 2010/12/13
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?, David Kastrup, 2010/12/13
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?, Fren Zeee, 2010/12/13
- Re: How to remove verbosity from the data passing mechanism using alist or plist ?, Fren Zeee, 2010/12/13
Re: How to remove verbosity from the data passing mechanism using alist or plist ?, Fren Zeee, 2010/12/07