Fork me on GitHub
#clojure-spec
<
2017-11-19
>
qqq00:11:04

Is there a better way to write: (s/def ::p1 #(s/valid ::vec2 %)) ?

qqq00:11:07

(s/def ::p1 #(s/valid ::vec2 %))

taylor00:11:19

(s/def ::p1 ::vec2)?

qqq01:11:57

In the spec guide, we see: (s/def ::suit #{:club :diamond :heart :spade}) which asserts that item is ELEMENT OF given set is there a corresponding builtin for 'item is SUBSET OF given set`