Created
March 9, 2010 02:07
-
-
Save pervognsen/326073 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
(defn zip [& xss] | |
(apply map (fn [& xs] xs) xss)) | |
(defmacro eager [[f & xs]] | |
(let [syms-and-xs (zip (repeatedly gensym) xs)] | |
`(let [~@(apply concat syms-and-xs)] | |
(~f ~@(map first syms-and-xs))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment