Skip to content
Advertisement

Tag: clojure

Don’t know how to create ISeq from: Java.lang.Long

Doing some practice on recursion and map implementation to knock some rust off Clojure. I’m using lists only here so how am I trying to mix seq and non-seqable stuff? REPL: Answer Some errors: replace ‘(finished-set) with finished-set into adds elements from one collection to another, I think you’re looking for conj (that’s the source of IllegalArgumentException) and if you’ll

How do I pass a class to new indirectly in clojure

I have a clojure class (a namespace with a (:gen-class) clause). I then need to pass a constructed object to a java function. this works However, if I need to refer to the class indirectly, that runs into some problems because new does not evaluate its argument. I am able to get the desired result by using While this works

GRPC clojure BigDecimal to java BigDecimal

I have a java client that is calling a Clojure service via GRPC. The problem is when we get the response back from their service it is adding letters to the end of the big decimal. When we try to convert it to a big decimal in java we get an error converting from a string to a big decimal.

Parsing command-line arguments from a STRING in Clojure

I’m in a situation where I need to parse arguments from a string in the same way that they would be parsed if provided on the command-line to a Java/Clojure application. For example, I need to turn “foo “bar baz” ‘fooy barish’ foo” into (“foo” “bar baz” “fooy barish” “foo”). I’m curious if there is a way to use the

What is the best way to do GUIs in Clojure?

What is the best way to do GUIs in Clojure? Is there an example of some functional Swing or SWT wrapper? Or some integration with JavaFX declarative GUI description which could be easily wrapped to s-expressions using some macrology? Any tutorials? Answer I will humbly suggest Seesaw. Here’s a REPL-based tutorial that assumes no Java or Swing knowledge. Seesaw’s a

Advertisement