I think this is a basic question, but I am having difficulty finding the answer in the documentation. Thread is not what I am looking for, I think.
Suppose that I have a function f that takes an unspecified number of arguments:
f[a, b, c, ...]
defined by a declaration like
f[lists__] := ...
Suppose that I have an argument list {a, b, c, d}.
How can I obtain f[a, b, c, d] from {a, b, c, d}?
Thanks.
f @@ {a, b, c, d}? For more, see the documentation for Apply. – Oleksandr R. Sep 19 '12 at 20:24Applyhere. The answer matches, but the question doesn't, so I'm not sure that it can be considered a duplicate as such even though the content is already here on the site. – Oleksandr R. Sep 19 '12 at 21:39@@and@@@are just different forms of prefixes stringed together. I'm also OK with not closing as a dupe of that... just pointed it out since Brett wanted a question on this site that was along the same lines – rm -rf Sep 20 '12 at 17:46