Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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.
5
votes
Accepted
Check for the presence of multiple files
You could use zipmap:
(defn all-files-present?
[file-seq]
(let [f #(bit-flip (look-for % "f") 0)]
(zipmap (map keyword file-seq) (map f file-seq))))
or juxt:
(defn all-files-present?
[f …
5
votes
Accepted
Excessive use of let a problem in Clojure?
First of all, you could use abstract structural binding (a.k.a. destructuring) to reduce the number of let bindings:
(defn- create-counts_org [[_ & present :as coll]]
"Computes how many times did e …
2
votes
Accepted
Finding first match in recursive search
Otherwise, if you really want to get rid of it, the unchunk-trick you mentioned is totally fine IMHO, until Clojure will offer an official, built-in option (maybe it will someday). …
10
votes
1
answer
1k
views
Idiomatic clojure code in a markdown parser
Some time ago I created a markdown parser in clojure and I would like to get some feedback, since I'm a clojure noob in the first place (is the code understandable?/is it idiomatic? …