Calling functions

From Rosetta Code
Revision as of 02:04, 26 August 2011 by rosettacode>Kernigh (This duplicates Call a function. {{DeprecatedTask}})
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.

Smalltalk

Where f is a closure and arguments is an array of values for f to operate on. <lang smalltalk>f valueWithArguments: arguments.</lang>