Skip to content

Commit

Permalink
Port sequence check into conform.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamiller authored and dnolen committed Sep 23, 2016
1 parent 4c51575 commit 7ef1ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/cljs/cljs/spec.cljs
Expand Up @@ -692,7 +692,8 @@
(assoc ret (nth (if conform-keys cv v) 0) (nth cv 1))))
identity]

(list? x) [empty addcv reverse]
(c/or (list? conform-into) (seq? conform-into) (c/and (not conform-into) (c/or (list? x) (seq? x))))
[empty addcv reverse]

:else [#(empty (c/or conform-into %)) addcv identity]))]
(reify
Expand Down

0 comments on commit 7ef1ed8

Please sign in to comment.