any such thing as list interleaving?
Lulu of the Lotus-Eaters
mertz at gnosis.cx
Sat Jul 12 17:11:01 EDT 2003
Tom Plunket <tomas at fancy.org> wrote previously:
|for entry, index in map(lambda e,i:(e,i),aList,range(len(aList)):
| # ...
for index,entry in enumerate(aList):
#...
Or back in the old days:
for entry,index in zip(aList,xrange(sys.maxint)):
#...
--
---[ to our friends at TLAs (spread the word) ]--------------------------
Echelon North Korea Nazi cracking spy smuggle Columbia fissionable Stego
White Water strategic Clinton Delta Force militia TEMPEST Libya Mossad
---[ Postmodern Enterprises <mertz at gnosis.cx> ]--------------------------
More information about the Python-list
mailing list