Skip to content

Instantly share code, notes, and snippets.

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 hyone/1058451 to your computer and use it in GitHub Desktop.
Save hyone/1058451 to your computer and use it in GitHub Desktop.
4clojure #88 - Symmetric Difference
;; 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