标签: clojure plumatic-schema
=>宏的用途是什么?
=>
https://github.com/plumatic/schema/blob/master/src/cljx/schema/core.cljx#L1077-L1091
只要函数被传递,它似乎就会通过,例如:
(s/defschema MySchema s/Int) (def a (s/=> MySchema s/Num)) (s/validate a :ok)