We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa281d commit 34baf6bCopy full SHA for 34baf6b
src/main/cljs/cljs/spec.cljs
@@ -1052,6 +1052,15 @@
1052
(reify
1053
IFn
1054
(-invoke [this x] (valid? this x))
1055
+ ILookup
1056
+ (-lookup [this k]
1057
+ (-lookup this k nil))
1058
+ (-lookup [_ k not-found]
1059
+ (case k
1060
+ :args argspec
1061
+ :ret retspec
1062
+ :fn fnspec
1063
+ not-found))
1064
Spec
1065
(conform* [_ f] (if (fn? f)
1066
(if (identical? f (validate-fn f specs *fspec-iterations*)) f ::invalid)
0 commit comments