"Raymond Hettinger" <raymond.hettinger at verizon.net> writes: > nlargest(iterable, n=1) > nsmallest(iterable, n=1) [...] > Note, heapq is used for both (I use > operator.neg to swap between largest and smallest). Does that mean nlargest/nsmallest only work for numbers? I think it might be useful for e.g. strings too. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/
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