Function— definition, example and pronunciation in USA and UK English

Noun (thing)
Function
a named sequence of procedural code statements that perform a certain task
The CS student spent all night working on a function to compute the average rainfall in Alaska.