BSD Ports

devel/py-first 2.0.2_1 DragonFly

Return the first true value of an iterable

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
5.8 KiB, 15.3 KiB installed

Description

first is an MIT licensed Python package with a simple function that returns the first true value from an iterable, or None if there is none. If you need more power, you can also supply a key function that is used to judge the truth value of the element or a default value if None doesn't fit your use case.

In the other systems

SystemPortVersion
DragonFlydevel/py-first2.0.2_1
FreeBSDdevel/py-first2.0.2_1
HardenedBSDdevel/py-first2.0.2_1
GhostBSDdevel/py-first2.0.2_1

Install

Binary package:

pkg install py311-first

From DPorts:

cd /usr/dports/devel/py-first && make install clean

Dependencies

Run dependencies 1

No port depends on this one.