3 ms·
It's not statically typed, but you can do this with clojure.spec (s/def ::number #(<= -180 % 180)) (s/def ::my-string (s/and string? #(re-matches #"[a-zA-Z
by wry_discontent 6y ago
It's not statically typed, but you can do this with clojure.spec
(s/def ::number #(<= -180 % 180))
(s/def ::my-string (s/and string? #(re-matches #"[a-zA-Z0-9]*" %)))