Calling functions: Difference between revisions

From Rosetta Code
Content added Content deleted
(Added Smalltalk)
 
(Redirected page to Call a function)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#redirect:[[Call a function]]
{{task|Basic language learning}}

Sometimes you want to call functions on arguments, and both are defined at runtime, or by user code.

=={{header|Smalltalk}}==
Where f is a closure and arguments is an array of values for f to operate on.
<lang smalltalk>f valueWithArguments: arguments.</lang>

Latest revision as of 18:03, 29 March 2013

Redirect to: