Fork me on GitHub
#clojure-spec
<
2017-08-07
>
souenzzo19:08:59

My actual spec says (s/def ::my-fns (s/coll-of fn?)). Can I specify that it's a array of functions with arity 2?

souenzzo19:08:43

(s/def ::my-fns (s/coll-of (s/fspec :args (s/cat :foo integer? :bar integer?)))

bfabry19:08:19

seems like that should work, does it not?

souenzzo19:08:49

works 😄. But i think that it's not on docs. I dig into code...