In computer programming, a function or subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed.

(“Function (Computer Programming)” 2023)

Bibliography

“Function (Computer Programming).” 2023. Wikipedia, March. https://en.wikipedia.org/w/index.php?title=Function_(computer_programming)&oldid=1144851530.