Calling functions

From Rosetta Code
Revision as of 02:27, 25 August 2011 by rosettacode>Mcandre (Added Smalltalk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Calling functions
You are encouraged to solve this task according to the task description, using any language you may know.

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>