Lisp Cons Cell的解释是什么?

Lisp Cons Cell的解释是什么?

问题描述:

Common Lisp Cons Cell的确切定义是什么? Cons Cell与标准链接列表项有何不同?毕竟,cons单元格和链接列表项都具有一个值以及指向下一个单元格或项的指针...还是这种理解是错误的?

What exactly is the definition of a Common Lisp Cons Cell? How is a Cons Cell different than a standard linked list item? After all, both the cons cell and the linked list item have a value and a pointer to the next cell or item... or is this understanding wrong?

Cons单元通常包含两个可以指向任何内容的指针.当然,一般的用法是指向左边的值",并指向右边的另一个Cons单元格(或nil).

Cons cells in general hold two pointers that can point to anything. General usage of course is to point to a "value" with the left one, and to another Cons cell (or nil) with the "right" one.