Function

From XPUB & Lens-Based wiki
Revision as of 20:56, 13 October 2008 by Michael Murtaugh (talk | contribs) (New page: A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.<br /> Think Python, p. 25 Functions ar...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.
Think Python, p. 25

Functions are the basis of making abstractions in programming. This process is often talked about as making "black boxes" -- which is an idea about how once a function is defined and tested you can stop thinking about how it works on the inside and simple treat it as kind of sealed tool with inputs and and an output.