Top "Clojure" questions

Clojure is a modern Lisp dialect for the Java Virtual Machine (with versions for the CLR and JavaScript).

Is there an equivalent for the Zip function in Clojure Core or Contrib?

In Clojure, I want to combine two lists to give a list of pairs, > (zip '(1 2 3) '(4 5 6)) ((1 4) (2 5) (3 6)) In Haskell …

clojure
Anonymous function shorthand

There's something I don't understand about anonymous functions using the short notation #(..) The following works: REPL> ((fn [s] s) "…

function clojure anonymous-function
How can I remove an item from a sequence in Clojure?

First, I assume each structure-specific sequences would have different ways to remove an item: Vectors could be by index, List …

clojure sequences
When I divide numbers in clojure I get a fraction , how do I get the decimal?

When I do (/ 411 125) , I don't get it in terms of decimal. How do I do that?

math clojure floating-point numbers
What is the idiomatic way to prepend to a vector in Clojure?

Prepending to a list is easy: user=> (conj '(:bar :baz) :foo) (:foo :bar :baz) Appending to a vector …

vector clojure append prepend
Difference between doseq and for in Clojure

What's the difference between doseq and for in Clojure? What are some examples of when you would choose to use …

clojure
Clojure/Java: Java libraries for spectrum analysis of sound?

I am looking for a library that can accept a chunk of audio data and return the average amplitude over …

java clojure audio fft spectrum
In Clojure, when should I use a vector over a list, and the other way around?

I read that Vectors are not seqs, but Lists are. I'm not sure what the rationale is for using one …

list vector clojure sequences
Clojure: cons (seq) vs. conj (list)

I know that cons returns a seq and conj returns a collection. I also know that conj "adds" the item …

collections clojure sequence
What is zip (functional programming?)

I recently saw some Clojure or Scala (sorry I'm not familiar with them) and they did zip on a list …

clojure functional-programming zip