Created
October 2, 2010 10:06
-
-
Save hoeck/607516 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.set :as set]) | |
(let [ss0 (sorted-set 1 2 3) | |
ss1 (sorted-set-by #(* -1 (.compareTo %1 %2)) 4 5 6)] | |
(= (seq (set/union ss0 ss1)) | |
(seq (set/union ss1 ss0)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment