Liking cljdoc? Tell your friends :D

schema-tools.walk

Provides walk function which can be used to transform schemas while preserving their structure and type.

Provides walk function which can be used to transform schemas while
preserving their structure and type.
raw docstring

postwalkclj/s

(postwalk f schema)

Performs a depth-first, post-order traversal of schema. Calls f on each sub-form, uses f's return value in place of the original. Works with Schemas implementing schema-tools.walk/WalkableSchema, implementation is provided for built-in schemas. Consumes seqs as with doall.

Performs a depth-first, post-order traversal of `schema`.  Calls `f` on
each sub-form, uses f's return value in place of the original.
Works with Schemas implementing schema-tools.walk/WalkableSchema,
implementation is provided for built-in schemas.
Consumes seqs as with doall.
sourceraw docstring

prewalkclj/s

(prewalk f schema)

Like postwalk, but does pre-order traversal.

Like postwalk, but does pre-order traversal.
sourceraw docstring

walkclj/s

(walk inner outer this)

Calls inner for sub-schemas of this schema, creating new Schema of the same type as given and preserving the metadata. Calls outer with the created Schema.

Calls `inner` for sub-schemas of this schema, creating new Schema of the same
type as given and preserving the metadata. Calls `outer` with the created
Schema.
sourceraw docstring

WalkableSchemaclj/s≠protocol

-walkclj/s

(-walk this inner outer)
source

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

× close