(*children-writef* children node)
Function to write children by.
Function to write children by.
(*data-writef* data node)
Function to write data by.
Function to write data by.
(*leaf?* node)
True if node has no children, false otherwise.
True if node has no children, false otherwise.
(add x & ys)
Makes node y the last child of node x. If x has no children, y becomes the first child of x.
Makes node y the last child of node x. If x has no children, y becomes the first child of x.
(make data)
(make data children)
Node with the given data and children.
Node with the given data and children.
Useful as shorthand symbol to :refer from.
Useful as shorthand symbol to :refer from.
(sweep node)
Keeps the node hash free of empty or nil children collections.
Keeps the node hash free of empty or nil children collections.
(update-children node f & args)
Shorthand for sweeping after updating node with f on children.
Shorthand for sweeping after updating node with f on *children*.
(update-nth-child node n f & args)
Applies f to an argument list consisting of the n-th child of node followed by args.
Applies f to an argument list consisting of the n-th child of node followed by args.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close