Melvin's digital garden

Spec - an introduction

[2016-09-07 Wed 19:00:00] speaker: Lucas Bradstreet event: Clojure SG

(s/confirm ) returns the original value

(s/valid ) returns whether the value matches the spec

(s/explain ) (s/explain-data )

(s/def )

(s/and ..) (s/or ..)

(s/nilable ) to allow nil

(s/keys :req […] :opt […]) (s/keys :req-un […] :opt-un […]) to construct a spec for a map

(s/merge ..) to specialize a map spec

(s/fdef :args … :ret … :fn …)

Links to this note