Concept:Function

From LQWiki
Jump to navigation Jump to search

A function is a control structure available in many programming languages, useful for naming and encapsulating common activities and pre-defining common calculations or other procedures.

The same sort of thing may go by different names in different programming languages.


See also

  • [method] - object oriented
  • subroutine - assemblers, among other things
  • subprogram - Fortran
  • procedure - sometimes applied to bits of code executed for their side-effects; that is, they return no value.