Liking cljdoc? Tell your friends :D

borkdude.rewrite-edn


assocclj/s

(assoc node k v)

Associates k to v in node (which may be a forms node as returned by parse-string or map node). Both k and v are coerced into nodes.

Associates k to v in node (which may be a forms node as returned by parse-string or map node).
Both k and v are coerced into nodes.
sourceraw docstring

assoc-inclj/s

(assoc-in node ks v)

Associates value under keys ks in map node with v.

Associates value under keys ks in map node with v.
sourceraw docstring

conjclj/s

(conj node v)
source

dissocclj/s

(dissoc node k)
source

fnilclj/s

(fnil f nil-replacement)
source

getclj/s

(get node k)
(get node k default)

Returns the value mapped to k, default or nil if key not present.

Returns the value mapped to k, default or nil if key not present.
sourceraw docstring

get-inclj/s

(get-in node ks)
(get-in node ks not-found)

Returns the value in a nested associative structure, where ks is a sequence of keys. Returns nil if the key is not present, or the not-found value if supplied.

Returns the value in a nested associative structure,
where ks is a sequence of keys. Returns nil if the key
is not present, or the not-found value if supplied.
sourceraw docstring

keysclj/s

(keys node)
source

map-keysclj/s

(map-keys f node)

Maps f over keys of node (which may be a forms node as returned by parse-string or map node).

Maps f over keys of node (which may be a forms node as returned by
parse-string or map node).
sourceraw docstring

parse-stringclj/s

(parse-string s)

Same as rewrite-clj.parser/parse-string-all

Same as rewrite-clj.parser/parse-string-all
sourceraw docstring

sexprclj/s

(sexpr node)

Same as rewrite-clj.node/sexpr

Same as rewrite-clj.node/sexpr
sourceraw docstring

updateclj/s

(update node k f & args)

Updates value under key k in map node. Function f receives node. Return value is coerced into node.

Updates value under key k in map node. Function f receives
node. Return value is coerced into node.
sourceraw docstring

update-inclj/s

(update-in node ks f & args)

Updates value under keys ks in map node. Function f receives node. Return value is coerced into node.

Updates value under keys ks in map node. Function f receives
node. Return value is coerced into node.
sourceraw docstring

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

× close