I\'m trying to write a macro tutorial, and now I need some examples which are simple to understand, and yet compelling.
(deftype Bag [state] Object (toString [bag] (str \"Bag???\" state))) I want the toString to look something like
I\'d like to start creating Android apps but I don\'t like Java. I read that scala can be used to do it. Are there another option?(Clojure?)
Clojure truly piqued my interest, and I started going through a tutorial on it: http://java.ociweb.com/mark/clojure/article.html
I ran lein uberjar on my project and it created the corresponding jar files. When I run the jar a ClassNotFoundException: explodingdots.core is thrown. I specified explodingdot.core as my main class.
In some implementations of Common LISP we can say that for the following expression (eq \'a \'a) Is true because \'a and \'a are the \"same atom\".
This is my input data: [[:a 1 2] [:a 3 4] [:a 5 6] [:b \\a \\b] [:b \\c \\d] [:b \\e \\f]] I would like to map this into the following:
What is the difference between defn and defmacro? What is the difference between开发者_开发问答 a function and a macro?defn defines a function, defmacro defines a macro.
I know the basics of clojure/java interop: calling java from clojure and vice versa. However, I was not able to return a typed collection from clojure to java. I am trying to see something of that nat
The following page talks about how atoms work in Clojure. It doesn\'t say a whole lot about the differences between atoms in Clojure and other lisp dialects.