cljs.spec.alpha/with-gen

functionpreviously cljs.spec/with-gen clojure.spec.alpha/with-genEdit
(with-gen spec gen-fn)

Source docstring:
Takes a spec and a no-arg, generator-returning fn and returns a version of that spec that uses that generator
Source code @ clojurescript:src/main/cljs/cljs/spec/alpha.cljs
(defn with-gen
  [spec gen-fn]
  (let [spec (reg-resolve spec)]
    (if (regex? spec)
      (assoc spec ::gfn gen-fn)
      (with-gen* (specize spec) gen-fn))))