apply
apply lambdaExpr ?arg ...?
Runs a lambda: a list of the arguments and a body, with an optional namespace. It works as a proc with no name.
Examples
A click on an example runs it in the shell of the page.
apply {{x y} {expr {$x + $y}}} 2 3:5
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.