Fork me on GitHub
#clojure-spec
<
2019-10-20
>
abdullahibra12:10:13

Hell everyone,

abdullahibra13:10:25

can i pass the spec to function? (defn validate [data spec]) ?, or this isn't right, because the spec is globally defined so i can use it inside the function directly ?

rascio15:10:41

yes you can, it is what the default validate does. specs are just values if you want to do a function that can work with any kind of spec you should do it.