cljs.spec.gen.alpha/gen-for-pred

functionpreviously cljs.spec.impl.gen/gen-for-predEdit
(gen-for-pred pred)

Source docstring:
Given a predicate, returns a built-in generator if one exists.
Source code @ clojurescript:src/main/cljs/cljs/spec/gen/alpha.cljs
(defn gen-for-pred
  [pred]
  (if (set? pred)
    (elements pred)
    (get @gen-builtins pred)))