a few extensions for the itertools

Mathias Panzenboeck e0427417 at student.tuwien.ac.at
Mon Nov 20 10:41:04 EST 2006


Roberto Bonvallet wrote:
> 
> all(predicate(x) for x in iterable)
> any(predicate(x) for x in iterable)
> 

Very true, but 2.4 is still very common and forall(perdicate,iterable) is less to write. ;)
(And haskell has both, to. all == and, forall == all, ...)

Well, but I think you are right. Don't reinvent the wheel, I guess.


	panzi



More information about the Python-list mailing list