Created
August 9, 2012 21:53
-
-
Save cemerick/3308381 to your computer and use it in GitHub Desktop.
hello world ClojureScript REPL over nREPL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
la-mer:piggieback chas$ lein2 repl | |
nREPL server started on port 62611 | |
REPL-y 0.1.0-beta10 | |
Clojure 1.4.0 | |
Exit: Control+D or (exit) or (quit) | |
Commands: (user/help) | |
Docs: (doc function-name-here) | |
(find-doc "part-of-name-here") | |
Source: (source function-name-here) | |
(user/sourcery function-name-here) | |
Javadoc: (javadoc java-object-or-class-here) | |
Examples from clojuredocs.org: [clojuredocs or cdoc] | |
(user/clojuredocs name-here) | |
(user/clojuredocs "ns-here" "name-here") | |
user=> (cemerick.piggieback/cljs-repl) | |
Type `:cljs/quit` to stop the ClojureScript REPL | |
nil | |
user=> (+ 1 1) | |
2 | |
user=> (defn <3 [a b] (str a " <3 " b)) | |
#< | |
function _LT_3(a, b) { | |
return [cljs.core.str(a), cljs.core.str(" <3 "), cljs.core.str(b)].join(""); | |
} | |
> | |
nil | |
user=> (<3 "nREPL" "ClojureScript") | |
"nREPL <3 ClojureScript" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Best Hello World ever.