How do I define a \newcommand (or in LaTeX 3 a \NewDocumentCommand) which itself defines a \newcommand with arguments. For example in
\documentclass{article}
\begin{document}
\newcommand{\test}[1]
{
\newcommand{#1}[2]
{\#1 \#2}
}
\test{\you}
\you{3}{4}
\end{document}
I would like the output to be "3 4" not "#1 #2" as I want the #1 #2 to be interpreted in the internal \newcommand as arguments.

#again (####1). – jon Jul 08 '14 at 04:29##1) in an argument?, Nesting command definitions more than two levels and Why do parameters of\renewcommandneed to double up the#within a\foreach. – Werner Jul 08 '14 at 05:11