How do I check for exact value?
#{:foo}
is a valid spec
a set containing one value
Thank you!
As far as I can understand if it’s a boolean I can do (s/def :mykey true?)
right?
prob better to use boolean?
I'm trying to get the spec (or any spec) from cljs.core.specs.alpha
but
(ns my-ns
(:require [clojure.spec.alpha :as s]
[cljs.core.specs.alpha :as cljs-specs]))
(s/form ::cljs-specs/local-name)
throws
Error: Unable to resolve spec: :cljs.core.specs.alpha/local-name
Why this is happening? the spec is defined: https://github.com/clojure/clojurescript/blob/ef32778989f7ba2311a1e8a5d99c30e6805f5719/src/main/cljs/cljs/core/specs/alpha.cljc#L16