Skip to content

Instantly share code, notes, and snippets.

@ztellman
Last active December 27, 2015 10:09
Show Gist options
  • Select an option

  • Save ztellman/7308501 to your computer and use it in GitHub Desktop.

Select an option

Save ztellman/7308501 to your computer and use it in GitHub Desktop.
(def gen-recursive
(gen/one-of
[(gen/return :a)
(gen/tuple (gen/return :b) gen-recursive)]))
(gen/sample gen-recursive) ;; NPE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment