Created
October 24, 2011 01:13
-
-
Save CampingScorpion/1308157 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(defmacro do-at [date-time & body] | |
"like clojure.core.do except evalautes the | |
expression at the given time" | |
`(do-at* ~date-time | |
(fn [] ~@body))) | |
;; nice. Now we can see the actual code that was hiding | |
;; behind all of those parens and fn creation: | |
(do-at (DateMidnight. 2000 1 1) | |
(DateMidnight.)) ;;=> (DateMidnight. 2000 1 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment