(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.
(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.
(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.
(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.
(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).
(parse-string s)
Same as rewrite-clj.parser/parse-string-all
Same as rewrite-clj.parser/parse-string-all
(sexpr node)
Same as rewrite-clj.node/sexpr
Same as rewrite-clj.node/sexpr
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close