[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page
Top Document: FAQ: Lisp Frequently Asked Questions 3/7 [Monthly posting]
Previous Document: [3-3] I used a destructive function (e.g. DELETE, SORT), but it didn't seem to work. Why?
Next Document: [3-5] Why does (READ-LINE) return "" immediately instead of waiting for me to type a line?
-
Search the FAQ Archives
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page
Top Document: FAQ: Lisp Frequently Asked Questions 3/7 [Monthly posting]
Previous Document: [3-3] I used a destructive function (e.g. DELETE, SORT), but it didn't seem to work. Why?
Next Document: [3-5] Why does (READ-LINE) return "" immediately instead of waiting for me to type a line?
[3-4] After I NREVERSE a list, it's only one element long. After I SORT a list, it's missing things. What happened?
These are particular cases of the previous question. Many NREVERSE and
SORT implementations operate by rechaining all the CDR links in the list's
backbone, rather than by replacing the CARs. In the case of NREVERSE, this
means that the cons cell that was originally first in the list becomes the
last one. As in the last question, the solution is to store the result
back into the original location.
Top Document: FAQ: Lisp Frequently Asked Questions 3/7 [Monthly posting]
Previous Document: [3-3] I used a destructive function (e.g. DELETE, SORT), but it didn't seem to work. Why?
Next Document: [3-5] Why does (READ-LINE) return "" immediately instead of waiting for me to type a line?
Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page
[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
ai+lisp-faq@cs.cmu.edu
Last Update July 24 2008 @ 00:14 AM