How to exit the REPL

patz picture patz · Feb 13, 2011 · Viewed 23.6k times · Source

I'm trying to exit the REPL.

I use (. System exit 0) or (System/exit 0), but that causes an error:

Exception in thread "Thread-3" java.lang.RuntimeException: java.lang.IndexOutOfBoundsException

Is there another way to exit the REPL? How I can resolve this error?

Answer

Sean Corfield picture Sean Corfield · Feb 13, 2011

You can send the 'end-of-file' character.

You can just press ctrl-d (*nix) or ctrl-z (Windows) to exit the REPL.