2 ms·
Yes it would, but I don't care about these small efficiencies, say 97% of the time ;) The lazy version in Python 3 would be this one: list(chain(*map(iter
by rbonvall 12y ago
Yes it would, but I don't care about these small efficiencies, say 97% of the time ;)
The lazy version in Python 3 would be this one:
list(chain(*map(iter, words)))
For Python 2 one has to use itertools.imap instead of map.