macro | previously cljs.spec/? | clojure.spec.alpha/? | Edit |
(? pred-form)
Returns a regex op that matches zero or one value matching pred. Produces a single value (not a collection) if matched.
(defmacro ?
[pred-form]
`(maybe-impl ~pred-form '~(res &env pred-form)))