In Common LISP I can do: (setf a1 \'a) (setf 1a \'b) In clojure I can do the first (ignoring the fact that setf and def work differently)
I want to be able to do the following pseudocode: Pass in symbol a. Pass in symbol b. Pass in an expression using a and b
This page introduces a lot of clojure libraries. And this page also comments to consider using th开发者_运维知识库e clojure-contrib.
I setup emacs slime/clojure as written here. When I run (doseq [p (.getURLs (java.lang.ClassLoader/getSystemClassLoader))] (println (.getPath p))) to get classpath, I get the following.
I found that I can use Chris Houser\'s repl-utils library (clojure.contrib.repl-utils/source or show) for poking into Java by reading Programming Clojure book page 20.
conj is used in (conj coll item), for example (conj #{} \"Stu\"). But, I found this example in \'Programming Clojure\' book page16.
I need to use my clojure functions with slime-connect. And I put all my libs in the $CLASSPATH. As I learned from this question. I used the following command to check the CLASSPATH for current envir
As is asked and answered here. I could use \'lein swank\' to run clojure on Aquamacs. I need to automate running \'lein swank\', before running slime/clojure.
Does Clojure have name开发者_如何学编程d arguments? If so, can you please provide a small example of it?In Clojure 1.2, you can destructure the rest argument just like you would destructure a map. Thi
CLASSPATH has the \"/Users/smcho/Desktop/clojure\" as one of its path, and this directory has the file hello.clj.