cascalog.logic.zip documentation

TreeNode

branch?

(branch? node)
Is it possible for node to have children?

cascalog-zip

(cascalog-zip root)
Returns a zipper for cascalog nodes, given a root sequence

children

(children node)
Return children of this node.

leftmost-descendant

(leftmost-descendant loc)
Given a zipper loc, returns its leftmost descendent (ie, down repeatedly).

make-node

(make-node node children)
Makes new node from existing node and new children.

my-next

(my-next loc)
Moves to the next loc in the hierarchy in postorder
traversal. Behaves like clojure.zip/next otherwise. Note that
unlike with a pre-order walk, the root is NOT the first element in
the walk order, so be sure to take that into account in your
algorithm if it matters (ie, call leftmost-descendant first thing
before processing a node).

postwalk-edit

(postwalk-edit zipper matcher editor & {:keys [encoder], :or {encoder identity}})