"Fun" Clojure fact: if (def my-distincts (distinct mylist)) then (apply distinct? my-distincts) may throw an exception instead of returning true.
I really like some->> in such cases: (some->> mylist not-empty (apply distinct?))
-
-
That's clever, but imo that's harder to read. I guess it doesn't really matter if it's put in a utility function though.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.