G
golubovsky
Hi,
Is there an easy way to construct a function call out of a function and
an array of actual arguments?
e. g. given a function `fun' and an array [1,2,3]
I need to obtain equivalent of `fun(1,2,3)'
`fun' is not a method of any object, just a function. Can `apply' be
used for this purpose?
I'd like to avoid using `eval' although it might be possible to
construct a string and evaluate it.
Thanks for any ideas.
Is there an easy way to construct a function call out of a function and
an array of actual arguments?
e. g. given a function `fun' and an array [1,2,3]
I need to obtain equivalent of `fun(1,2,3)'
`fun' is not a method of any object, just a function. Can `apply' be
used for this purpose?
I'd like to avoid using `eval' although it might be possible to
construct a string and evaluate it.
Thanks for any ideas.