Apply Function
REBOL 3.0 supports the apply function (i.e. the Lisp concept). It simply evaluates a function with the arguments provided in a block.
apply :afunc [1 "test" example]
The 64K question is: does apply reduce the block first? If we are true to the design of functions like make, then it would not.
You can always add your own reduce function:
apply :afunc reduce [1 "test" example]
We could even create reapply if we think it has sufficient value.
24 Comments
|