Calling functions: Difference between revisions
Content added Content deleted
(Added Smalltalk) |
(This duplicates Call a function. {{DeprecatedTask}}) |
||
Line 1: | Line 1: | ||
{{ |
{{DeprecatedTask|Basic language learning}} |
||
Sometimes you want to call functions on arguments, and both are defined at runtime, or by user code. |
Sometimes you want to call functions on arguments, and both are defined at runtime, or by user code. |
||
* This task is a '''duplicate''' of [[Call a function]]. Please add new examples to [[Call a function]], not to this page. |
|||
=={{header|Smalltalk}}== |
=={{header|Smalltalk}}== |
Revision as of 02:04, 26 August 2011
Calling functions was a programming task. It has been deprecated for reasons that are discussed in its talk page.
Sometimes you want to call functions on arguments, and both are defined at runtime, or by user code.
- This task is a duplicate of Call a function. Please add new examples to Call a function, not to this page.
Smalltalk
Where f is a closure and arguments is an array of values for f to operate on. <lang smalltalk>f valueWithArguments: arguments.</lang>