Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1107801 of First-class Function

  • Revision slug: Glossary/First-class_Function
  • Revision title: First-class Function
  • Revision id: 1107801
  • Created:
  • Creator: klez
  • Is current revision? Yes
  • Comment first draft

Revision Content

A programming language is said to have First-class functions when functions in that language are treated like any other variable. For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a variable.

Learn more

General knowledge

  • {{Interwiki("wikipedia", "First-class functions", "First-class functions")}} on Wikipedia

 

Revision Source

<p>A programming language is said to have <strong>First-class functions</strong> when functions in that language are treated like any other variable. For example, in such a language, a function can be passed as an argument to other functions, can be returned by another function and can be assigned as a value to a variable.</p>

<h2>Learn more</h2>

<h3>General knowledge</h3>

<ul>
 <li>{{Interwiki("wikipedia", "First-class functions", "First-class functions")}} on Wikipedia</li>
</ul>

<p>&nbsp;</p>
Revert to this revision