Public Variables and Functions
keywordize-keys
functionUsage: (keywordize-keys m)
Recursively transforms all map keys from strings to keywords.
Added in Clojure version 1.1
Source
macroexpand-all
functionUsage: (macroexpand-all form)
Recursively performs all possible macroexpansions in form.
Added in Clojure version 1.1
Source
postwalk
functionUsage: (postwalk f form)
Performs a depth-first, post-order traversal of form. Calls f oneach sub-form, uses f's return value in place of the original.Recognizes all Clojure data structures. Consumes seqs as with doall.
Added in Clojure version 1.1
Source
postwalk-demo
functionUsage: (postwalk-demo form)
Demonstrates the behavior of postwalk by printing each form as it iswalked. Returns form.
Added in Clojure version 1.1
Source
postwalk-replace
functionUsage: (postwalk-replace smap form)
Recursively transforms form by replacing keys in smap with theirvalues. Like clojure/replace but works on any data structure. Doesreplacement at the leaves of the tree first.
Added in Clojure version 1.1
Source
prewalk
functionUsage: (prewalk f form)
Like postwalk, but does pre-order traversal.
Added in Clojure version 1.1
Source
prewalk-demo
functionUsage: (prewalk-demo form)
Demonstrates the behavior of prewalk by printing each form as it iswalked. Returns form.
Added in Clojure version 1.1
Source
prewalk-replace
functionUsage: (prewalk-replace smap form)
Recursively transforms form by replacing keys in smap with theirvalues. Like clojure/replace but works on any data structure. Doesreplacement at the root of the tree first.
Added in Clojure version 1.1
Source
stringify-keys
functionUsage: (stringify-keys m)
Recursively transforms all map keys from keywords to strings.
Added in Clojure version 1.1
Source
walk
functionUsage: (walk inner outer form)
Traverses form, an arbitrary data structure. inner and outer arefunctions. Applies inner to each element of form, building up adata structure of the same type, then applies outer to the result.Recognizes all Clojure data structures. Consumes seqs as with doall.
Added in Clojure version 1.1
Source