Fork me on GitHub
#clojure-spec
<
2017-03-07
>
hkjels08:03:40

the docs say that or will return a map, but as far as I can see it's returning a vector with key/value

(s/def ::icon-params
  (s/cat :font (s/or :prefix ::font-prefix
                     :name ::font-name)
         :icon ::icon-name))
Am I using it wrong?

hkjels08:03:12

Ohh. I misread the doc. It returns a map-entry, not a map

andrewboltachev10:03:51

Hi. Does spec support recursive types?