Liking cljdoc? Tell your friends :D

clojure+.walk

Same as clojure.walk but does not recreate data structures if result of transform funcion is identical

Same as clojure.walk but does not recreate data structures if result
of transform funcion is identical
raw docstring

assoc+clj/s

(assoc+ coll key value)
source

dissoc+clj/s

(dissoc+ coll key)
source

editable?clj/s

(editable? coll)
source (clj)source (cljs)

keywordize-keysclj/s

(keywordize-keys m)

Recursively transforms all map keys from strings to keywords.

Recursively transforms all map keys from strings to keywords.
sourceraw docstring

map-entryclj/s

(map-entry k v)
source

persistent+clj/s

(persistent+ coll)
source

postwalkclj/s

(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

postwalk-replaceclj/s

(postwalk-replace smap form)

Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data structure. Does replacement at the leaves of the tree first.

Recursively transforms form by replacing keys in smap with their
values.  Like clojure/replace but works on any data structure.  Does
replacement at the leaves of the tree first.
sourceraw docstring

prewalkclj/s

(prewalk f form)

Like postwalk, but does pre-order traversal.

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

prewalk-replaceclj/s

(prewalk-replace smap form)

Recursively transforms form by replacing keys in smap with their values. Like clojure/replace but works on any data structure. Does replacement at the root of the tree first.

Recursively transforms form by replacing keys in smap with their
values.  Like clojure/replace but works on any data structure.  Does
replacement at the root of the tree first.
sourceraw docstring

stringify-keysclj/s

(stringify-keys m)

Recursively transforms all map keys from keywords to strings.

Recursively transforms all map keys from keywords to strings.
sourceraw docstring

transient?clj/s

(transient? coll)
source (clj)source (cljs)

walkclj/s

(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.

This version uses transients and reduce instead of seq where possible and tries not to re-create collections if nothing inside changed (identical?)

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.

This version uses transients and reduce instead of seq where possible and
tries not to re-create collections if nothing inside changed (identical?)
sourceraw docstring

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

× close