Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created December 11, 2011 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borkdude/1462160 to your computer and use it in GitHub Desktop.
Save borkdude/1462160 to your computer and use it in GitHub Desktop.
mr1.mr1=> (union #{1 2 3} #{4 5 6})
CompilerException java.lang.RuntimeException: Unable to resolve symbol: union in this context, compiling:(NO_SOURCE_PATH:3)
mr1.mr1=> (clojure.set/union #{1 2 3} #{4 5 6})
ClassNotFoundException clojure.set java.net.URLClassLoader$1.run (URLClassLoader.java:202)
mr1.mr1=> (require 'clojure.set)
nil
mr1.mr1=> (clojure.set/union #{1 2 3} #{4 5 6})
#{1 2 3 4 5 6}
mr1.mr1=> (require '[clojure.set :as set])
nil
mr1.mr1=> (set/union #{1 2 3} #{4 5 6})
#{1 2 3 4 5 6}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment