40

In the python repl, getting the result of the previously input expression is easy:

>>> 1+2
3
>>> _
3
>>> 

Is there a way to do this in the clojure repl?

1 Answer 1

69
*1

Should do it! Similarly, you have access to *2 and *3 as well.

2
  • sweet! thanks. and curse stackoverflow for making me wait to accept Commented Oct 24, 2010 at 23:23
  • 19
    And *e for the last exception thrown. Commented Oct 25, 2010 at 3:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.