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
I would back way up to the beginning and reconsider your ::board spec.
Generally for any data where the structures are homogenous, you're probably
better off using one of the collection specs like coll-of (or map-of,
every, every-kv) rather than a regex, which should primarily be used when
you
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