Hi Alex,
Thanks very much for this, makes sense and has solved my issue.
After a trying a few things, it appears that the ArityException was thrown
because I would have needed to wrap my regex with s/spec
i,e,
(s/fdef my-function :args (s/cat :board (s/spec ::board)))
So I think this all makes
Hi.
I've been experimenting with clojure spec and a game of life problem, and
have been trying to spec a rectangular board of unknown size made up of a
collection of rows, each of which contain an equal number of cells. My
initial attempt was:-
(def cell? #{0 1})
(s/def ::row (s/coll-of cell? :m