Raymond Hettinger wrote: <snip ...> > >OTOH, if you actually want to end-up with a dictionary, it is somewhat >wasteful to build one, throw it away, and then rebuild it from the >itemlist: > > >>> dict(count_elements(words)) > > > IMO, the dictionary would be more useful as : >>> dict(pairswap(count_elements(words))) And yes, it would be wasteful to produce it in this way. -- Grégoire Dooms
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4