multiple sequences to filter()
Peter Schneider-Kamp
nowonder at nowonder.de
Thu Aug 24 12:18:22 EDT 2000
Ben Wolfson wrote:
>
> list1, list2 = filter(lambda x,y: x==y, list1, list2)
>
> Which, of course, does not work, even though it seems like a natural thing
> to do.
If you can explain the meaning of that in general terms
(for l1, l2, ... = filter(boolfunc, l1, l2, ...)
it shouldn't be a problem to implement.
I doubt that you can come up with one, though.
please-disappoint-me-ly y'rs
Peter
--
Peter Schneider-Kamp ++47-7388-7331
Herman Krags veg 51-11 mailto:peter at schneider-kamp.de
N-7050 Trondheim http://schneider-kamp.de
More information about the Python-list
mailing list