Clojure is a Lisp dialect for the Java Virtual Machine. Its main features include a software transactional memory system for coherent updates to data structures, transparent access to Java libraries, a dynamic REPL development environment, runtime polymorphism, and built-in concurrent programming ...
Please review this newbie's clojure code (mine). The purpose of this function is to report processing progress to the terminal. It loops through an array of maps that contain two properties: ...
I have been solving a set of online Clojure problems, one of them involves the look and say sequence. I have some working code: (defn look-and-say [s] (let [las (loop [item (first s) coll s ...
I have an mail object that returns its headers as an Enumerator of Header objects, which have two methods, getName and getValue. I need to convert that to a nice Clojure map so I wrote this short ...
How can I improve this clojure code? It looks strange to me to have two recurs in the if. It solves the following problem. The following text is an in-order traversal of a binary tree with 1023 ...
The following code solves this problem: The 3072 characters below contain a sequence of 5 characters which is repeated. However, there is a twist: one of the sequences has a typo. To be specific, ...
Hey all, I've got a clojure function here that's meant to parse a string of form "DDXXXYYY" where DD is meant to be discarded, and XXX and YYY are string representations of integers. Here's my ...
I am learning clojure and decided to start out by trying to write a solution to a fairly simple algorithm, reservoir sampling. As I stated, I am learning clojure specifically and problem solving in a ...
I am in the process of learning Clojure. I am fairly new to functional programming and would like to know if my code smells or if there are any performance implications with my approach. ; Returns ...