Liking cljdoc? Tell your friends :D

via-schema.syntax.ghostwheel


extract-argclj

(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..
sourceraw docstring

extract-schema+params+bodyclj

(extract-schema+params+body args)

Extracts schema + params + body from args.

Extracts schema + params + body from args.
sourceraw docstring

merge-param-schemasclj

(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
sourceraw docstring

overloaded?clj

(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
sourceraw docstring

param-vector?clj

(param-vector? x)

Returns whether the vector is valid as parameter bindings

Returns whether the vector is valid as parameter bindings
sourceraw docstring

parseclj

(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`
sourceraw docstring

schema-vector?clj

(schema-vector? x)

Returns whether the vector is valid as malli schema vector

Returns whether the vector is valid as malli schema vector
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close