Fork me on GitHub
#clojure-spec
<
2017-11-23
>
qqq16:11:10

I have a number of specs: ::Foo ::Bar ::Cat ::Dog if I do (s/keys :req-un [::Foo ::Bar ::Cat ::dog]) the keys of the map become :Foo :Bar :Cat :Dog. Is there some way to redo this so the keys become :foo :bar :cat :dog instead ?

misha16:11:58

(s/def ::foo ::Foo)

misha16:11:11

And then use ::foo in :req-un

qqq16:11:26

obvious yet brilliant

qqq20:11:00

(s/valid? any? nil) what is idiomatic way to say: this can be anything so long as it is not nik ?

qqq20:11:02

(some? false) => true -- this is surprising

guy20:11:25

(defn some?
  "Returns true if x is not nil, false otherwise."
  {:tag Boolean
   :added "1.6"
   :static true}
  [x] (not (nil? x)))