OK, this feels like a really dumb question...

I'm playing around in the REPL, I type in a function, I use it and
continue to work on other stuff... I can't remember what the function
looked like and I want to display the source of it again...

I know I can go back through the REPL history but maybe I typed it in
ages ago or maybe I typed it on multiple lines so it's hard to piece
together from the history. That seems like hard work.

I know I can go directly to the .jline-clojure.main.history file in my
home directory. That seems like cheating (and it means I have to jump
out of the REPL and hunt thru the file).

I know I can use (source sym) to get the source of something whose
.clj is on the classpath - that doesn't work for stuff typed directly
into the REPL.

Is there something easy within the REPL to show the source of
something you defined earlier?
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
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 members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to