I\'m working on some Java / Clojure interoperability and came across a reflection warning for the following code:
I\'m trying to figure out how I can manage my l开发者_如何学编程og4j.properties file with leiningen.I\'d like to be able to automatically include the file in the jars that lein creates as well as have
Here\'s my implementation of Sieve of Erathosthene in Clojure (based on SICP lesson on streams): (defn nats-from [n]
My answer to this problem feels too much like these solutions in C. Does anyone have any advice to make this more lispy?
The code below doesn\'t behave as I would expect. ; given a function name, its args and body, create 2 versions:
I\'m trying to implement sieve of Eratosthenes in Clojure. One approach I would like to test is this:
(use \'[clojure.contrib.trace]) (dotrace [str] (reduce str [\\a \\b])) 开发者_如何转开发In a nutshell:
I defined an unless macro as follows: user=> (defmacro unless [expr body] (list \'if expr nil body))
I am trying to write a simple sieve function to calculate prime numbers in clojure.I\'ve seen this question about writing an efficient sieve function, but I am not to that point yet.Right now I am jus
I had never really thought about whether a symbol c开发者_运维技巧ould be a number in Lisp, so I played around with it today: