Liking cljdoc? Tell your friends :D

walkr.core


postwalk-reduceclj

(postwalk-reduce f acc form)

Performs a depth-first, post-order traversal of form. Calls f with acc on each sub-form, f should return a vector of [new-acc new-form]. Uses f's return acc and form in place of the original with each call. Recognizes all Clojure data structures. Consumes seqs as with doall.

Performs a depth-first, post-order traversal of form.
Calls f with acc on each sub-form, f should return a vector of [new-acc new-form].
Uses f's return acc and form in place of the original with each call.
Recognizes all Clojure data structures. Consumes seqs as with doall.
sourceraw docstring

prewalk-reduceclj

(prewalk-reduce f acc form)

Like postwalk-reduce, but does pre-order traversal.

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

walk-reduceclj

(walk-reduce inner outer acc form)

Traverses form, an arbitrary data structure while accumulating a result. Inner and outer are 2 arity functions, returning a vector of [acc form]. Applies inner to acc and each element of form, building up a data structure of the same type, then applies outer to acc and the result. Recognizes all Clojure data structures. Consumes seqs as with doall.

Traverses form, an arbitrary data structure while accumulating a result.
Inner and outer are 2 arity functions, returning a vector of [acc form].
Applies inner to acc and each element of form, building up a data
structure of the same type, then applies outer to acc and the result.
Recognizes all Clojure data structures. Consumes seqs as with doall.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close