Function object: Difference between revisions

Content deleted Content added
Scls19fr (talk | contribs)
Tags: Mobile edit Mobile web edit
Line 688:
In a more theoretical context a ''function object'' may be considered to be any instance of the class of functions, especially in languages such as [[Common Lisp]] in which functions are [[first-class object]]s.
 
The [[functional programming]] languages [[ML (programming language)|ML]] andfamily of [[Haskellfunctional (programming language)|Haskell]] uselanguages uses the term ''functor'' to represent a [[function (mathematics)|mapping]] from modules to modules, or from types to types and is a technique for reusing code. Functors used in this manner are analogous to the original mathematical meaning of [[functor]] in [[category theory]], or to the use of generic programming in C++, Java or [[Ada (programming language)|Ada]].
 
In [[Haskell (programming language)|Haskell]], the term is used in the same sense as in category theory.
In [[Prolog]] and related languages, functor is a synonym for [[function symbol]].
 
In [[Prolog]] and related languages, ''functor'' is a synonym for [[function symbol]].
 
== See also ==