(either & {:keys [choices] :as opts})
Build an EitherType with the keyword arguments opts
.
(either :choices [(int) (str)]) ;; => #flanders.types.EitherType{:choices [,,,]}
This function requires the value of the :choices
key be a sequence
of at least length 1.
(either :choices [(int) (str)]) ;; => AssertionError Assert failed: either expects at least one choice
Build an EitherType with the keyword arguments `opts`. (either :choices [(int) (str)]) ;; => #flanders.types.EitherType{:choices [,,,]} This function requires the value of the `:choices` key be a sequence of at least length 1. (either :choices [(int) (str)]) ;; => AssertionError Assert failed: either expects at least one choice
(map entries & {:as opts})
Make a MapType containing the given entries. Note that nothing is done to enforce uniqueness of the entries keys. Duplicate keys are handled at the discretion of the fn that is walking the DDL tree, though it should be assumed that later duplicates replace earlier ones (as when merging maps).
Make a MapType containing the given entries. Note that nothing is done to enforce uniqueness of the entries keys. Duplicate keys are handled at the discretion of the fn that is walking the DDL tree, though it should be assumed that later duplicates replace earlier ones (as when merging maps).
(map-of {:as opts} & entry-lists)
Build a MapType with a map of options followed by lists of entries. Useful when composing lists of required-entries, optional-entries, and predefined entries.
Build a MapType with a map of options followed by lists of entries. Useful when composing lists of required-entries, optional-entries, and predefined entries.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close