automatic "lotjes trekken"
François Pinard
pinard at iro.umontreal.ca
Tue Nov 30 10:45:36 EST 1999
"Tim Peters" <tim_one at email.msn.com> writes:
> [...] with a belly full of far too much turkey.
Strange. I was imagining you rather slim. Are you? :-)
> where p[:] ranges over all permutations of range(N) [...]
By the way, I do not remember any standard library helper to enumerate all
permutations (or combinations, or arrangements) of a given list (or tuple).
Ideally one at a time, of course. Would this be useful?
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list