Is it possible to create a simple, robust command with a variable number of arguments for the following specific use-case ?
Consider
\newcommand{\bigmap}[7]{%
#1\!\begin{pmatrix}#2\\
#3\\
#4
\end{pmatrix}=\begin{pmatrix}#5\\
#6\\
#7
\end{pmatrix}\!
}%
What \bigmap{F}{a_{1}}{a_{2}}{a_{3}}{b_{1}}{b_{2}}{b_{3}}
does is, it creates a map
But I would like this command dto be flexibel, so that I may add more or less a_i and/or b_i, like
(Nota bene: For that, of course, it one more argument would be necessary that specifies in the sequence of arguments #1, #2, ... #N, which one belong to the left parenthesis of the function and which ones to the right.
The existing answers to allow commands with variable arguments are much too complex for me to understang as they refer to much more complicated use cases. If possible, I would like less lines of code than those answers to achieve this goal.
The answer from LaTeX newcommand with a variable number of arguments is very close to what I want, but unfortunately it falls short of a way to tell the command, like I mentioned in the first paragraph here, which of the arguments of the list should go where in the function.
Also note that solution like LuaTex would only be employed, if nothing else works.)
)
{F} {a\\b\\c} {d\\e}
I'll leave the details to you