Skip to main content

Questions tagged [clojure]

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 constructs.

Filter by
Sorted by
Tagged with
3 votes
1 answer
321 views

I'm new to Clojure. How can I make this more idiomatic Clojure code? Among other things, there are three (do) blocks and I don't think using (def) as many times as I do is a recommended idea. ...
Kevin Burke's user avatar
4 votes
1 answer
512 views

The purpose of this function is to report processing progress to the terminal. It loops through an array of maps that contain two properties: :sequence and ...
Frank Henard's user avatar
4 votes
1 answer
315 views

I have been solving a set of online Clojure problems. One of them involves the look and say sequence. ...
Lewis Jubb's user avatar
2 votes
3 answers
209 views

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 ...
Pablo Fernandez's user avatar
6 votes
3 answers
417 views

The following text is an in-order traversal of a binary tree with 1023 nodes. What is the sum of the digits appearing in the leaves? How can I improve this Clojure code? It looks strange to me to ...
Zordak's user avatar
  • 91
3 votes
2 answers
448 views

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,...
Zordak's user avatar
  • 91
7 votes
3 answers
2k views

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. ...
Sam Ritchie's user avatar
13 votes
3 answers
600 views

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 ...
fido's user avatar
  • 293
26 votes
3 answers
2k views

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. ...
Jeremy's user avatar
  • 539

1
5 6
7
8 9
35