(extract-arg args pred)
(extract-arg args pred error)
Utility function for extracting arguments from a list.
Returns a tuple of the value matching the pred
if it returns logical true and the
rest of the arg list. Otherwise returns the original arg list.
Takes an optional error
which will assert that the pred
returns a truthy
value..
Utility function for extracting arguments from a list. Returns a tuple of the value matching the `pred` if it returns logical true and the rest of the arg list. Otherwise returns the original arg list. Takes an optional `error` which will assert that the `pred` returns a truthy value..
(extract-schema+params+body args)
Extracts schema + params + body from args.
Extracts schema + params + body from args.
(merge-param-schemas schemas)
Merges a collection of param schemas into a single multi-dispatch schema
Merges a collection of param schemas into a single multi-dispatch schema
(overloaded? body+params)
Returns whether the provided body+params
list is overloaded in arities
Returns whether the provided `body+params` list is overloaded in arities
(param-vector? x)
Returns whether the vector is valid as parameter bindings
Returns whether the vector is valid as parameter bindings
(parse args)
Parses a collection of quoted expressions as ghostwheel style function definition.
Retuerns a map to be used by cg/generate
Parses a collection of quoted expressions as ghostwheel style function definition. Retuerns a map to be used by `cg/generate`
(schema-vector? x)
Returns whether the vector is valid as malli schema vector
Returns whether the vector is valid as malli schema vector
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close