(*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.
Data structure to populate node with.
Data structure to populate node with.
(*sweep* node)
Keeps the node hash free of empty or nil children collections.
Keeps the node hash free of empty or nil children collections.
(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.
(fanout node)
Number of children in the node.
Number of children in the node.
(leaf? node)
True if node has no children, false otherwise.
True if node has no children, false otherwise.
(make data)
(make data children)
Node with the given data and children.
Node with the given data and children.
(map-children node f)
Shorthand for mapping f over children.
Shorthand for mapping f over children.
Useful as shorthand symbol to :refer from.
Useful as shorthand symbol to :refer from.
(update-children node f & args)
Shorthand for read / transform / write pipeline on children.
Shorthand for read / transform / write pipeline 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