Calling functions
Calling functions
You are encouraged to solve this task according to the task description, using any language you may know.
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>