Preparing for system design interviews?  Try bugzed.com →

first: Return the First True Value from an Iterable

JSON →
library 2.0.2 ·python
verified Jun 28, 2026

first is an MIT-licensed Python package with a single, simple function that efficiently returns the first 'truthy' value from an iterable, or `None` if no such value exists. It offers optional `key` function customization for complex truthiness evaluation and a `default` parameter for specifying a fallback value. Currently at version 2.0.2, the library maintains a stable, infrequent release cadence focused on core functionality and compatibility.

total hits 10
actors 3 distinct systems
last hit 18d ago AhrefsBot
Amazonbot
4
Script
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom · 🇸🇬 Singapore