I need a pretty simple thing - when I get a macro parameter which is a string delimited with commas, can I split it and assign resulting strings into an array?
In short, I'd like to write something like this:
\newcommand{\test}[1]{
\def\array = \parse{#1}{,}
}
So I could later use it like this:
\someOtherMacro{\array[1]}
I was looking at the other answers, but I'm not able to find something really simple for this task (just parsing string and assigning results).
\def\com#1,#2{\def\array{#1}}
. i.e.\com{Hallo,Tübb}
will result in\array -> Hallo
.