per-elementfunction
nounUK /pɜːr ˈɛlɪmənt ˈfʌŋkʃən/
US /pɜːr ˈɛlɪmənt ˈfʌŋkʃən/
A per-element function is a rule that works on each item in a list, one at a time.
The program uses a per-element function to double every number in the list.
RELATED WORDS
OTHER MEANINGS
2. In programming, a function applied separately to each member of a collection rather than to the collection as a whole.
Map applies a per-element function to each entry in the array.
3. In mathematics, a rule defined independently for each element of a set.
The per-element function assigns each element its square.
4. A processing step that treats every unit of data individually.
The filter uses a per-element function to keep only positive values.