FICHA · AUR

python2-first

Provides a Python function to get the first element of an iterator.

  • iterator helper library
  • LIBRARY
  • Dev
  • Dependency only
official+codex · reviewed · Jun 4, 2026 description in en

Description

Iterator handling in legacy Python 2 code can use a small helper to retrieve the first matching element. This library reduces repeated boilerplate around iterables and default values.

It is imported by applications and libraries, not used as a standalone program. The caller decides what iterable is evaluated and whether that evaluation has side effects.

Permissions

Permissions not analysed for this source yet.