]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Improve all_equal() recipe (gh-116081)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Wed, 28 Feb 2024 23:04:56 +0000 (17:04 -0600)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 23:04:56 +0000 (17:04 -0600)
commit67c19e57b5c928278ebd191a545979ce786f06b3
tree89cb3b560a1f1cc29d8dbe1508e52e40e9c7b394
parent81c79961d2ee27dec90dbc0b72dfca7a5b27de7a
Improve all_equal() recipe (gh-116081)

Replace conjuction of next() calls with simpler len()/take() logic. Add key function.
Doc/library/itertools.rst