0
In matlab one could type in the following and get the following reply:
matlab> 1+1
ans = 2
One could then all the last returned object by simply typing:
matlab> ans
ans = 2
That is, the last output seems to be saved in an object named ans
. For this rather useful if you are playing around with a little code for some rapid prototyping.
I now wonder if ipython, irb and javascript in the chrome dev tools console have similar functionality and if so, how to call it.