Skip to content

Instantly share code, notes, and snippets.

@sherpc
Last active August 29, 2015 14:00
Show Gist options
  • Save sherpc/11150754 to your computer and use it in GitHub Desktop.
Save sherpc/11150754 to your computer and use it in GitHub Desktop.
Clojure's every?
(defn d-op [op d1 d2]
(if (every? #(instance? org.joda.time.DateTime %) [d1 d2])
(op (c/to-long d1) (c/to-long d2))
(op d1 d2)))

This is post about clojure's every? function for Roughdraft.io.

  • item1
  • item2

d-op.clj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment