clojure
loading configuration file in clojure as data structure
Is there a reader function in clojure to parse clojure data structure? My use case is to read configuration properties files and one value for a property should be a list. I\'d like to be able to writ[详细]
2023-04-13 10:07 分类:问答Exception - javadoc already refers to.... why?
user=> (load-file \"build-clojure.clj\") java.lang.IllegalStateException: javadoc already refers to: #\'clojure.java.javadoc/javadoc in namespace: user (buil[详细]
2023-04-13 09:22 分类:问答In Clojure 1.3, How to read and write a file
I\'d like to know the \"recommended\" way of reading 开发者_运维技巧and writing a file in clojure 1.3 .[详细]
2023-04-13 07:47 分类:问答DSL in Clojure that replaces an object-oriented software solution?
I was wondering wether anyone knew of a concrete example of a DSL in Clojure which replaces the abstraction and readability of a good OO program (written in, say , Java).[详细]
2023-04-13 06:44 分类:问答Clojure recursive function
As a Clojure newbie, I\'m bothered with this small problem: I would like to iterate through a sequence and execute a split, and then a str (concatenation) function over the sequence elements开发者_运[详细]
2023-04-13 04:56 分类:问答println in clojure! (in lazy sequence)
1) (def x (for [i (range 1 3)] (do (println i) i))) 2) (def x (for [i (range 1 3)] (do i))) Both pro开发者_运维技巧duces same output, then what is the use of println?Values evaluate to themselves, a[详细]
2023-04-13 04:31 分类:问答In Clojure why use :only []
The source for lazy-xml has the following: (:use [clojure.xml :as xml :only []] [clojure.contrib.seq :only [fill-queue]])[详细]
2023-04-13 04:03 分类:问答Compojure: how to map query parameters
I\'m trying to make any of the following mappings work to map http://mysite.org/add?http://sitetoadd.com or http://mysite.org/add?u=http://sitetoadd.com[详细]
2023-04-13 03:38 分类:问答Making an executable jar that evals Clojure strings
I\'m building a Java app that loads Clojure files.I\'m having trouble making a single executable jar.I\'m using One-Jar开发者_JS百科, but I get an exception when I try to run the jar file:[详细]
2023-04-13 03:05 分类:问答In Clojure, what is a good way to compare user input Strings with Longs?
In Clojure I am building a card game. Cards have a suit and a score. {:suit 1 :score 9} The cards are created using ranges, e.g. (range suitTotal), so the class of the values of :suit and :score is[详细]
2023-04-13 02:56 分类:问答