We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e83c2a commit edf869aCopy full SHA for edf869a
src/clj/clojure/spec.clj
@@ -1209,8 +1209,8 @@
1209
ret
1210
(assoc ret (nth (if conform-keys cv v) 0) (nth cv 1))))
1211
identity]
1212
-
1213
- (c/or (list? conform-into) (c/and (not conform-into) (list? x)))
+
+ (c/or (list? conform-into) (seq? conform-into) (c/and (not conform-into) (c/or (list? x) (seq? x))))
1214
[(constantly ()) addcv reverse]
1215
1216
:else [#(empty (c/or conform-into %)) addcv identity]))]
test/clojure/test_clojure/spec.clj
@@ -143,6 +143,7 @@
143
coll [] [] nil
144
coll [:a] [:a] nil
145
coll [:a :b] [:a :b] nil
146
+ coll (map identity [:a :b]) '(:a :b) nil
147
;;coll [:a "b"] ::s/invalid '[{:pred (coll-checker keyword?), :val [:a b]}]
148
)))
149
0 commit comments