Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created June 22, 2017 16:37
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 infinite-Joy/3e1d342b1e4f8eaf85a21dc76d9ed92d to your computer and use it in GitHub Desktop.
Save infinite-Joy/3e1d342b1e4f8eaf85a21dc76d9ed92d to your computer and use it in GitHub Desktop.
user=> (require '[clojure.set :as set])
niL
user=> ; set operations
user=> (set/union #{1 2} #{2 3}
#{1 3 2}
user=> (set/intersection #{1 2} #{2 3})
#{2}
user=> (set/difference #{1 2} #{2 3})
#{1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment