Last active
February 14, 2017 21:16
-
-
Save deque-blog/307f5dc9beadf805c0f5d38472b3f355 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
toClojureFunction :: String -> Expr -> String | |
toClojureFunction name e = | |
unwords | |
["(defn", name, | |
"[" ++ unwords (Set.toList $ dependencies e) ++ "]", | |
prn e, ")"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment