Re: Last value from REPL

2012-01-28 Thread Stuart Sierra
Yes, the REPL binds *1, *2, and *3 to the three most recent returned values. *e is the most recent Exception. -S -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new m

Last value from REPL

2012-01-28 Thread David Jacobs
Does the Clojure REPL provide a handle for getting the value returned by the last executed statement? In Ruby's REPL, the underscore gives you the last returned value. In Clojure, I'd love to do something like this: (some-expensive-or-rate-limited-call "example.com") (def cache-after-the-fact _)