[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: firstname.lastname@example.org
- Subject: Re: remove
- From: "Mark A. Tapia" <email@example.com>
- Date: Fri, 27 Nov 1992 09:09:40 -0500
- Cc: firstname.lastname@example.org
Many people have commented at great length about using remove
(remove-if and remove-if-not), noting that
The result of remove may share with the argument sequence; a list
result may share a tail with an input list and the result may be
eq to the input sequence if no elements need to be removed"
This general comment is also applicable to other non-destructive
sequence modifiers, including remove-duplicates, and substitute,
when the argument is a list. However, while the operations are allowed
to share a tail with the input sequence, they are not required to.
Does this mean that it is safer to copy the list first and then
apply the destructive functional equivalent?