Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created February 14, 2017 21:28
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/1d6d1e298c8646f83587693d7fd89a31 to your computer and use it in GitHub Desktop.
Save deque-blog/1d6d1e298c8646f83587693d7fd89a31 to your computer and use it in GitHub Desktop.
clojureFunctionGen :: Int -> Gen String
clojureFunctionGen size =
toClojureFunction
<$> genName
<*> fmap optimize (genExpr size)
generate (clojureFunctionGen 30)
> "(defn ptvkegely [c j m n t u y] (+ -64 m c t y n j u) )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment