Liking cljdoc? Tell your friends :D

contextual.walk


IWalkcljprotocol

-walkclj

(-walk coll f)

If coll is a collection, applies f to each element of the collection and returns a collection of the results, of the same type and order as coll. If coll is not a collection, returns it unchanged. "Same type" means a type with the same behavior. For example, a hash-map may be returned as an array-map, but a a sorted-map will be returned as a sorted-map with the same comparator.

If coll is a collection, applies f to each element of the
collection and returns a collection of the results, of the same type
and order as coll. If coll is not a collection, returns it unchanged.
"Same type" means a type with the same behavior. For example, a
hash-map may be returned as an array-map, but a a sorted-map will be
returned as a sorted-map with the same comparator.
source

maybe-metaclj

(maybe-meta o)
source

meta?clj

(meta? o)
source

postwalkclj

(postwalk f form)

Performs a depth-first, post-order traversal of form. Calls f on each sub-form, uses f's return value in place of the original. Recognizes all Clojure data structures. Consumes seqs as with doall.

Performs a depth-first, post-order traversal of form.  Calls f on
each sub-form, uses f's return value in place of the original.
Recognizes all Clojure data structures. Consumes seqs as with doall.
sourceraw docstring

preserving-metaclj

(preserving-meta o o')
source

preserving-postwalkclj

(preserving-postwalk f form)
source

preserving-walkclj

(preserving-walk inner outer form)
source

walkclj

(walk inner outer form)

Traverses form, an arbitrary data structure. inner and outer are functions. Applies inner to each element of form, building up a data structure of the same type, then applies outer to the result. Recognizes all Clojure data structures. Consumes seqs as with doall.

Traverses form, an arbitrary data structure.  inner and outer are
functions.  Applies inner to each element of form, building up a
data structure of the same type, then applies outer to the result.
Recognizes all Clojure data structures. Consumes seqs as with doall.
sourceraw docstring

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

× close