3 ms·
A footnote mentions that @which is not as helpful for functions defined the REPL, because it doesn't give a file and line number in that case. This is not the
by stevengj 13y ago
A footnote mentions that @which is not as helpful for functions defined the REPL, because it doesn't give a file and line number in that case. This is not the case, however, in the new IJulia notebook interface (a REPL based on the IPython notebook); there, each multiline input cell is named "In[nnn]" (like Mathematica) and is treated like a file, so you can type "@which foo(3)" and it will give "foo(x) at In[22]:1" if you defined foo on line 1 of input In[22].
Note also that, in the latest versions of the REPL (and IJulia), you can simply type "? foo(3)" instead of "@which foo(3)".