Is there any way to define a command like:
\newcommand{\mysum}[2]{\sum\limits_{#1}^{#2}}
where the two arguments are separated by a comma instead of brackets?
So for example, I'd like to have:
\documentclass[12pt, letterpaper]{article}
\usepackage{amsmath}
%yet to be defined command%
\begin{document}
The sum given by $a=\mysum{n=1, \infty}$
\end{document}
Return the same thing as:
\documentclass[12pt, letterpaper]{article}
\usepackage{amsmath}
\begin{document}
The sum given by $a=\sum\limits_{n=1}^{\infty}$
\end{document}

