per-item function

noun
UK /pɜːr ˈaɪtəm ˈfʌŋkʃən/
US /pɜːr ˈaɪtəm ˈfʌŋkʃən/

A per-item function is a small job that happens once for each thing in a list.

The app uses a per-item function to check every photo in the album.


OTHER MEANINGS

2. A routine that is applied separately to each entry rather than to the whole collection at once.

Instead of one bulk update, the system calls a per-item function for each record.

3. A cost or action calculated for each individual product in a purchase.

Shipping is handled by a per-item function that adds a small fee for every box.

4. A small piece of code that runs once for every element during a scan.

The per-item function logged each name as the program went down the list.