home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / lisp / 2940 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.2 KB

  1. Xref: sparky comp.lang.lisp:2940 comp.lang.lisp.mcl:1661
  2. Newsgroups: comp.lang.lisp,comp.lang.lisp.mcl
  3. Path: sparky!uunet!newsstand.cit.cornell.edu!news
  4. From: Tim Larkin <tsl1@cornell.edu>
  5. Subject: Re: remove
  6. Message-ID: <1992Nov23.161022.20210@mail.cornell.edu>
  7. X-Xxdate: Mon, 23 Nov 92 16: 14:46 GMT
  8. Sender: news@mail.cornell.edu
  9. Nntp-Posting-Host: 128.253.27.134
  10. Nntp-Posting-User: tsl1@cornell.edu
  11. Organization: Cornell University
  12. X-Useragent: Nuntius v1.1.1d7
  13. References: <HALTRAET.92Nov20091121@monsun.si.no>
  14. Date: Mon, 23 Nov 1992 16:10:22 GMT
  15. Lines: 18
  16.  
  17. In article <HALTRAET.92Nov20091121@monsun.si.no> Hallvard Tr{tteberg,
  18. haltraet@monsun.si.no writes:
  19. >It shouldn't be difficult to write one that kept the biggest unchanged
  20. >tail of the original list, returning the whole unmodified list if it
  21. >didn't contain the first argument.
  22.  
  23. On the other hand, Common Lisp, the Manual, states that "the result [of 
  24. remove] is a copy of the input sequence." If you return part of the 
  25. original list, then you change the contract of the function. Sometimes 
  26. one uses remove and requires a totally new list. One must be careful 
  27. about "efficiency".
  28.  
  29. Tim Larkin
  30. Federal Nutrition Laboratory
  31. Tower Road
  32. Ithaca, New York
  33. tsl1@cornell.edu
  34. 607-255-7008
  35.