mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Remove outdated docstring from the quantify
itertools recipe (#109726)
This commit is contained in:
parent
cade5960ae
commit
46b63ced25
1 changed files with 0 additions and 1 deletions
|
@ -845,7 +845,6 @@ which incur interpreter overhead.
|
|||
|
||||
def quantify(iterable, pred=bool):
|
||||
"Given a predicate that returns True or False, count the True results."
|
||||
"Count how many times the predicate is True"
|
||||
return sum(map(pred, iterable))
|
||||
|
||||
def all_equal(iterable):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue