[plt-dev] remf in unstable/list

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Thu May 27 14:36:41 EDT 2010

On 5/27/10 2:27 PM, Eli Barzilay wrote:
> On May 26, Sam Tobin-Hochstadt wrote:
>> On Wed, May 26, 2010 at 3:54 PM, Eli Barzilay<eli at barzilay.org>  wrote:
>>> On May 25, David Van Horn wrote:
>>>> Could the following make its way into unstable/list?  It adds
>>>> remf for symmetry with findf and memf.
>>>
>>> Is there any reason for putting it in unstable?  It should not be
>>> used outside of the racket tree.
>>
>> I agree - I can't imagine that the interface to `remf' is likely to
>> change.
>
> I missed the fact that this is removing only the first matching item
> rather than all of them (which would make it the same as
> `filter-not').  Are there any cases where this is useful?

Here's a patch that reverts adding remf to unstable and another that 
adds it to racket/list.

I think remf is useful since it is an abstraction of remove, remv, remq, 
etc., and including it is consistent with findf, memf, and assf.

David
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: remf.patch
URL: <http://lists.racket-lang.org/dev/archive/attachments/20100527/90642461/attachment.ksh>

Posted on the dev mailing list.