clojureclojureclr

Can't find clojure.set in ClojureClr


I am using ClojureClr 1.6.0 and I'm trying to use clojure.set but I can't find it:

user=> (doc clojure.set/union)
; nil

When I try to use it, I get:

user=> (clojure.set/union #{1 2} #{3})
; TypeNotFoundException Unable to find type: clojure.set clojure.lang.RT.classForNameE (:0)

I tried to load it

user=> (require '(clojure.set))
; nil

but still couldn't find it.


Solution

  • Your syntax for loading the required dependencies appears to be incorrect. I have 1.5.x, not 1.6, but both (require 'clojure.set) (note absence of parentheses around clojure.set) and (require '[clojure.set :as cs]) (give it an alias) work for me. See also Clojure : loading dependencies at the REPL