sets.filter?
Jeremy Fincher
tweedgeezer at hotmail.com
Wed Jun 25 22:20:15 EDT 2003
Gerrit Holl <gerrit at nl.linux.org> wrote in message news:<mailman.1056577245.15021.python-list at python.org>...
> would it be a good idea to add a .filter() method to a set object,
> which behaves like the builtin filter() but resulting in a set?
> I often see myself doing sets.Set(filter(f, someset))... Would this
> be a good addition to sets.Set?
Yes, it'd be a great idea. filter/map/reduce should've been methods
on sequences from the beginning.
Jeremy
More information about the Python-list
mailing list