We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
quantify
1 parent cade596 commit 46b63ceCopy full SHA for 46b63ce
Doc/library/itertools.rst
@@ -845,7 +845,6 @@ which incur interpreter overhead.
845
846
def quantify(iterable, pred=bool):
847
"Given a predicate that returns True or False, count the True results."
848
- "Count how many times the predicate is True"
849
return sum(map(pred, iterable))
850
851
def all_equal(iterable):
0 commit comments