Two line subscript in LaTeX

While writing a paper in LaTeX I wanted to write something similiar to this:

    \[\lim_{\substack{x\rightarrow 0\\y\rightarrow 0}} f(x,y)\]

But even thouh this might seem to be just a minor thing, it took me almost two hours to find a solution. Simply write:

\lim_{\substack{x\rightarrow 0\\y\rightarrow 0}} f(x,y)

Notice the substack command which allows one to have multiple lines in a subscript

Fork me on GitHub