Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hello world ClojureScript REPL over nREPL
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"
@ohpauleez

This comment has been minimized.

Copy link

commented Aug 10, 2012

Best Hello World ever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.