File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1052
1052
(-lookup [this k] (get specs k))
1053
1053
(-lookup [_ k not-found] (get specs k not-found))
1054
1054
Spec
1055
- (conform* [_ f] (if (fn ? f)
1055
+ (conform* [_ f] (if (ifn ? f)
1056
1056
(if (identical? f (validate-fn f specs *fspec-iterations*)) f ::invalid )
1057
1057
::invalid ))
1058
1058
(unform* [_ f] f)
1059
1059
(explain* [_ path via in f]
1060
- (if (fn ? f)
1060
+ (if (ifn ? f)
1061
1061
(let [args (validate-fn f specs 100 )]
1062
1062
(if (identical? f args) ; ;hrm, we might not be able to reproduce
1063
1063
nil
1072
1072
(when fnspec
1073
1073
(let [cargs (conform argspec args)]
1074
1074
(explain-1 fform fnspec (conj path :fn ) via in {:args cargs :ret cret})))))))))
1075
- {path {:pred 'fn ? :val f :via via :in in}}))
1075
+ {path {:pred 'ifn ? :val f :via via :in in}}))
1076
1076
(gen* [_ _ _ _] (if gfn
1077
1077
(gfn )
1078
1078
(when-not fnspec
You can’t perform that action at this time.
0 commit comments