Fork me on GitHub
#clojure-spec
<
2018-06-23
>
ackerleytng16:06:37

what's the difference between s/* and coll?

ackerleytng16:06:53

like if i do (s/def ks coll?), is that the same as (s/def ks (s/* any?))?

Alex Miller (Clojure team)16:06:28

s/* is a regex op and will compose with other regex ops to describe the internal structure of a sequential collection

Alex Miller (Clojure team)16:06:47

If you don’t have any structure, I’d use coll-of