MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / count

Function count

tools/python-3.11.9-amd64/Lib/statistics.py:450–453  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

448 # Handle iterators that do not define __len__().
449 n = 0
450 def count(iterable):
451 nonlocal n
452 for n, x in enumerate(iterable, start=1):
453 yield x
454 data = count(data)
455 if weights is None:
456 total = fsum(data)

Callers 15

fmeanFunction · 0.70
__init__Method · 0.70
_find_vc2015Function · 0.50
ilenFunction · 0.50
slicedFunction · 0.50
__iter__Method · 0.50
count_cycleFunction · 0.50
mark_endsFunction · 0.50
locateFunction · 0.50
tabulateFunction · 0.50
ilenFunction · 0.50
slicedFunction · 0.50

Calls 1

enumerateFunction · 0.85

Tested by

no test coverage detected