(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.
(sig & {:keys [parameters rest-parameter return] :as opts})
Build a SignatureType with the keyword arguments opts
.
(sig :parameters [(int) (str)] :return (str)) ;; => #flanders.types.SignatureType{:parameters [,,,] :return #flanders.types.StringType{,,,}}
If the :return
option is not specified the return type of the
signature is will be specified as flanders.types.AnythingType
.
A signature can be variadic by specifying the :rest-parameter
argument.
Build a SignatureType with the keyword arguments `opts`. (sig :parameters [(int) (str)] :return (str)) ;; => #flanders.types.SignatureType{:parameters [,,,] :return #flanders.types.StringType{,,,}} If the `:return` option is not specified the return type of the signature is will be specified as `flanders.types.AnythingType`. A signature can be variadic by specifying the `:rest-parameter` argument.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close