CrossClj

0.10.1 docs

SourceDocs



RECENT
    VARS
    postwalk
    prewalk
    schema-record?
    walk
    WalkableSchema

    « Index of all namespaces of this project

    Provides walk function which can be used to transform schemas while
    preserving their structure and type.
    (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.
    (prewalk f schema)
    Like postwalk, but does pre-order traversal.
    
    Private
    (schema-record? x)
    Tests if the parameter is Schema record. I.e. not vector, map or other
    collection but implements Schema protocol.
    (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.
    protocol
    (-walk this inner outer)