Liking cljdoc? Tell your friends :D

squirrel.node


*children-readf*clj

Function to read children by.

Function to read children by.
raw docstring

*children-writef*clj

(*children-writef* children node)

Function to write children by.

Function to write children by.
raw docstring

*data-readf*clj

Function to read data by.

Function to read data by.
raw docstring

*data-writef*clj

(*data-writef* data node)

Function to write data by.

Function to write data by.
raw docstring

*leaf?*clj

(*leaf?* node)

True if node has no children, false otherwise.

True if node has no children, false otherwise.
raw docstring

addclj

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

fanoutclj

(fanout node)

Number of children in the node.

Number of children in the node.
raw docstring

makeclj

(make data)
(make data children)

Node with the given data and children.

Node with the given data and children.
raw docstring

nodeclj

Useful as shorthand symbol to :refer from.

Useful as shorthand symbol to :refer from.
raw docstring

sweepclj

(sweep node)

Keeps the node hash free of empty or nil children collections.

Keeps the node hash free of empty or nil children collections.
raw docstring

update-childrenclj

(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*.
raw docstring

update-nth-childclj

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

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

× close