Skip to content

Instantly share code, notes, and snippets.

@wilkerlucio
Last active November 12, 2016 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilkerlucio/d322426a4191873cde59002a5aca83eb to your computer and use it in GitHub Desktop.
Save wilkerlucio/d322426a4191873cde59002a5aca83eb to your computer and use it in GitHub Desktop.
readers notation
(s/def ::reader-map (s/map-of keyword? ::reader))
(s/def ::reader-seq (s/coll-of ::reader :kind vector?))
(s/def ::reader-fn (s/fspec :args (s/cat :env map?)
:ret any?))
(s/def ::reader
(s/or :fn ::reader-fn
:map ::reader-map
:list ::reader-seq))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment