Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active February 14, 2017 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/307f5dc9beadf805c0f5d38472b3f355 to your computer and use it in GitHub Desktop.
Save deque-blog/307f5dc9beadf805c0f5d38472b3f355 to your computer and use it in GitHub Desktop.
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