Why does the following Clojure program throw a NullPointerException? user=> (defn x [] \"Do two things if the expression is true.\"
just looking to re factor some simple code I have a function (defn foo ([x y] (let [line [x y]] (...)) ([x y z]
I have this piece of code: (ns com.example.main) (gen-class :name com.example.main.CTest :methods [ [foo [] \"[B\"]])
I have an application where Clojure code is evaluated either from the application classpath or as a remote file store resource.
I\'m learning Clojure solving the problems listed on 4clojure. One of the exercises is to create your own max function with variable arguments.
Is there a better way to do this in Clojure? daniel=> (reverse \"Hello\") (\\o \\l \\l \\e \\H) daniel=> (apply str (vec (reverse \"Hello\")))
I\'ve been reading code and documentation to try to understand how class reloading works in clojure. According to many websites, such as http://tutorials.jenkov.com/java-reflection/dynamic-class-loadi
If I want to keep a global counter (e.g. to cou开发者_运维技巧nt number of incoming requests across multiple threads), then the best way to do in java would be to use a volatile int. Assuming, clojure
Part of what\'s so powerful about Clojure is that all the core data-types implement the same sequence abstraction: clojure.lang.ISeq.
I am having some problems with a project and was hoping you could help. I have some clojure functions like