[m-rev.] for review: list.negated_filter

Paul Bone pbone at csse.unimelb.edu.au
Mon Aug 11 14:02:03 AEST 2008


On Mon, Aug 11, 2008 at 02:01:22PM +1000, Zoltan Somogyi wrote:
> This avoids the need for auxiliary predicates in several places,
> e.g. in the deep profiler. That diff will come later. The main
> thing to review is the predicate's name.
> 
> Zoltan.
> 
> library/list.m:
> 	Add list.negated_filter.
> 
> 	Reimplement list.filter/3 to avoid constructing the list of elements
> 	for which the test predicate fails.
> 
> NEWS:
> 	Mention the new predicate.
> 

Looks good to me.  negated_filter or filter_negated are the best names I
can think of.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20080811/e6340d6f/attachment.sig>


More information about the reviews mailing list