MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / nsmallest

Function nsmallest

Lib/heapq.py:221–237  ·  view source on GitHub ↗

Find the n smallest elements in a dataset. Equivalent to: sorted(iterable)[:n]

(n, iterable)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

teeFunction · 0.90
_heapify_maxFunction · 0.85
sortedFunction · 0.85
countFunction · 0.70
listClass · 0.50
sortMethod · 0.45

Tested by

no test coverage detected