clojure
Run two commands in a row after an if statement in Clojure
Why does the following Clojure program throw a NullPointerException? user=> (defn x [] \"Do two things if the expression is true.\"[详细]
2023-04-07 04:47 分类:问答A Clojure binding question
just looking to re factor some simple code I have a function (defn foo ([x y] (let [line [x y]] (...)) ([x y z][详细]
2023-04-07 04:29 分类:问答Java arrays in Clojure's gen-interface
I have this piece of code: (ns com.example.main) (gen-class :name com.example.main.CTest :methods [ [foo [] \"[B\"]])[详细]
2023-04-06 19:37 分类:问答Restrict the use of a Clojure fn
I have an application where Clojure code is evaluated either from the application classpath or as a remote file store resource.[详细]
2023-04-06 19:16 分类:问答Defining my own max function with variable arguments
I\'m learning Clojure solving the problems listed on 4clojure. One of the exercises is to create your own max function with variable arguments.[详细]
2023-04-06 16:56 分类:问答Reverse a string (simple question)
Is there a better way to do this in Clojure? daniel=> (reverse \"Hello\") (\\o \\l \\l \\e \\H) daniel=> (apply str (vec (reverse \"Hello\")))[详细]
2023-04-06 08:06 分类:问答How does clojure class reloading work?
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[详细]
2023-04-06 01:32 分类:问答synchronized counter in clojure
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[详细]
2023-04-05 21:10 分类:问答Adding custom behavior to Clojure's sequences
Part of what\'s so powerful about Clojure is that all the core data-types implement the same sequence abstraction: clojure.lang.ISeq.[详细]
2023-04-05 19:12 分类:问答How to connect Clojure functions to html page?
I am having some problems with a project and was hoping you could help. I have some clojure functions like[详细]
2023-04-05 16:40 分类:问答