Remove outdated docstring from the quantify itertools recipe (#109726)

This commit is contained in:
Łukasz Langa 2023-09-22 15:09:32 +02:00 committed by GitHub
parent cade5960ae
commit 46b63ced25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):