Liking cljdoc? Tell your friends :D

squirrel.node


*children-readf*clj

Function to read children by.

Function to read children by.
sourceraw docstring

*children-writef*clj

(*children-writef* children node)

Function to write children by.

Function to write children by.
sourceraw docstring

*data-readf*clj

Function to read data by.

Function to read data by.
sourceraw docstring

*data-writef*clj

(*data-writef* data node)

Function to write data by.

Function to write data by.
sourceraw docstring

*seed*clj

Data structure to populate node with.

Data structure to populate node with.
sourceraw docstring

*sweep*clj

(*sweep* node)

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

Keeps the node hash free of empty or nil children collections.
sourceraw 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.
sourceraw docstring

fanoutclj

(fanout node)

Number of children in the node.

Number of children in the node.
sourceraw docstring

leaf?clj

(leaf? node)

True if node has no children, false otherwise.

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

makeclj

(make data)
(make data children)

Node with the given data and children.

Node with the given data and children.
sourceraw docstring

map-childrenclj

(map-children node f)

Shorthand for mapping f over children.

Shorthand for mapping f over children.
sourceraw docstring

nodeclj

Useful as shorthand symbol to :refer from.

Useful as shorthand symbol to :refer from.
sourceraw docstring

not-leaf?clj

Shorthand for (complement leaf?)

Shorthand for (complement leaf?)
sourceraw docstring

update-childrenclj

(update-children node f & args)

Shorthand for read / transform / write pipeline on children.

Shorthand for read / transform / write pipeline on children.
sourceraw 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.
sourceraw docstring

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

× close