Fork me on GitHub
David Pham20:05:35

Saying you a spec ::a , you can get back the definition with s/form. Is it possible to extract a generator from the s/form?

Alex Miller (Clojure team)20:05:58

sure, just eval to to get a spec object, then s/gen

Alex Miller (Clojure team)20:05:30

but if you have ::a, you're already there, so not sure what you're driving at

Alex Miller (Clojure team)20:05:07

one big caveat is that that s/form does not currently capture when a generator is overridden with like s/with-gen