Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2011 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/1058448 to your computer and use it in GitHub Desktop.
Save anonymous/1058448 to your computer and use it in GitHub Desktop.
;; hyone's solution to Symmetric Difference
;; https://4clojure.com/problem/88
#(cond
(empty? %1) %2
(empty? %2) %1
:else (apply disj (apply conj %1 %2) (filter %1 %2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment