Is it possible to pass an array argument to newcommand and then access those individual array elements?
For example, if I wanted to multiply the third element of the array (first argument) by the value of the second argument:
\newcommand{\hello}[2]{(#1.#3)*#2}
(Note #1.#3 is probably incorrect, I'm asking how to access this value.)
And using the command in the body code:
I want \hello{1,2,5}{2} gumdrops.
Edit: minimum working example?
\documentclass{standalone}
\newcommand{\hello}[2]{(#1)*(#2)}
\begin{document}
I want \hello{1}{2} gumdrops.
\end{document}
It's not really multiplying (I guess I don't know how to multiply numbers in newcommand), but that's not important to me and either way I want to be able to access the values of the arguments. Except in the first argument I'd like to be able to pass an array and access each specific element of it individually (i.e. not looping over it), which is totally not expressed in the MWE.

##1, which I'm not sure what that is but maybe that's what I want? – Hanmyo Feb 17 '15 at 20:55\hello{A,2,c}creates a structure (an "array") with three elements, say. And you want to access\hello{1}as being the first element (returningA),\hello{2}returning2and\hello{3}returningc. Do you want to manipulate the elements after creating them as well, or just retrieve them? – Werner Feb 17 '15 at 21:03\newarray{myarray}{1,2,3}and then use\getelement{myarray}{3}*2or\getlastelement{myarray}*2. It would generalize your question since tomorrow you're going to be interested in performing some calculation on element 2, or some random element, for which "last element extraction" might not be general enough. – Werner Feb 17 '15 at 21:21hellocommand I need to explicitly create a new array? I just tried\newcommand{hello}{2}{\getelement{#1}{3}*#2}and it didn't work. – Hanmyo Feb 17 '15 at 21:31\newcommandis wrong. See this answer of mine for a simple introduction. – cfr Feb 18 '15 at 02:00\hello{}{}to produce. (What should happen to the other elements in the array, for example? Note that LaTeX expects#1,...,#9to refer to arguments1,...,9. As such, you cannot specify a macro with 2 arguments and then use#3, for example, and you must tell LaTeX if your macro takes arguments and how many. This is explained a bit better in the answer I linked to. – cfr Feb 18 '15 at 02:06#1,...,#9but TeX expect it. This is feature of TeX. And don't tell me that this is simplification. No, this is baffling the users. @Hanmyo If you are not able to explain your problem exactly then you cannot expect the solution. – wipet Feb 18 '15 at 08:38\newcommandis LaTeX. I have no idea why you think my comment baffling. – cfr Feb 18 '15 at 09:24