Category "clojure"

Can clojure/clojurescript compile down to webassembly?

Thinking about writing a game using web assembly. Is there a good way of doing that using Clojure or clojurescript?

Clojure - compiling project with Java classes that are potentially not available

I am wrapping a java library in Clojure. Depending on the java library version, some classes exist or not, so my library can fail to even compile if it can't fi

Clojure - compiling project with Java classes that are potentially not available

I am wrapping a java library in Clojure. Depending on the java library version, some classes exist or not, so my library can fail to even compile if it can't fi

Clojure result returned is always function rather then result

So I'm having trouble in that every time I evaluate a Clojure function, or type in in a REPL and call it, I'm not getting the result but something like #functio

Why can't you RSeq an RSeq?

user=> (rseq [:a :b]) (:b :a) user=> (rseq (rseq [:a :b])) ClassCastException clojure.lang.APersistentVector$RSeq cannot be cast to clojure.lang.Reversi

Learn Clojure: NullPointerException on triplicate

I'm taking the beginner tutorial on the Clojure official site. One exercise asks you to do the following: 7) Define a function triplicate which takes anoth

Recursive macro clojure

In an attempt to better learn macros I've been playing around with a few simple examples including recreating a simplified thread-last. I'm having trouble unde

clojure returning hello world and nothing in the output

I just started learning Clojure and I have my own Clojure script but it's not returning the output that I am hoping for (Hello World). Here is my code: (ns com.

Unable to resolve symbol: Example in this context clojure 1.10

I am a beginner with Clojure and I received this error while trying to write code in Clojure: ; Syntax error compiling at (src/com/playground/core.clj:17:1). ;

Reverse a vector in clojure

Hi I just starting with Clojure and I cannot manage to reverse a vector of integers. ;generate a vector of random integers (defn generate-rands [x] (vector

Why build a Clojure string using literal characters?

I was reading some code just now, and I ran across this line: (str cache \, \space lru \, \space tick \, \space limit) This is odd to me. Consecutive litera

Clojure Box: classpaths

I'm stuck with "Programming Clojure" on page 37 on a Windows 7 machine. After downloading the "examples" dir into "C:/clojure", I typed: user> (require 'exam

Clojure Box: classpaths

I'm stuck with "Programming Clojure" on page 37 on a Windows 7 machine. After downloading the "examples" dir into "C:/clojure", I typed: user> (require 'exam