Liking cljdoc? Tell your friends :D

tupelo.forest

Allows the use of multiple tree structures. Provides tools to create, manipulate, and query the the trees individually and/or collectively.

Allows the use of multiple tree structures. Provides tools to create, manipulate, and query
the the trees individually and/or collectively.
raw docstring

*enlive-subtree-buffer-size*clj

Default output buffer size for filter-enlive-subtrees.

Default output buffer size for `filter-enlive-subtrees`.
sourceraw docstring

add-bushclj

(add-bush bush)

Inputs: [bush] Returns: HID

Adds a bush to the forest

Inputs: [bush]
Returns: HID

Adds a bush to the forest
sourceraw docstring

add-nodeclj

(add-node attrs-arg)
(add-node attrs-arg kid-hids)

Inputs: ([attrs-arg] [attrs-arg :- (s/if map? tsk/KeyMap s/Keyword) kid-hids :- [HID]]) Returns: HID

Inputs: ([attrs-arg] [attrs-arg :- (s/if map? tsk/KeyMap s/Keyword) kid-hids :- [HID]])
Returns: HID
sourceraw docstring

add-treeclj

(add-tree tree-node)

Inputs: [tree-node :- tsk/KeyMap] Returns: HID

Adds a tree to the forest.

Inputs: [tree-node :- tsk/KeyMap]
Returns: HID

Adds a tree to the forest.
sourceraw docstring

add-tree-ednclj

(add-tree-edn arg)

Inputs: [arg] Returns: HID

Adds a EDN-format tree to the forest.

Inputs: [arg]
Returns: HID

Adds a EDN-format tree to the forest. 
sourceraw docstring

add-tree-enliveclj

(add-tree-enlive arg)

Inputs: [arg] Returns: HID

Adds an Enlive-format tree to the forest

Inputs: [arg]
Returns: HID

Adds an Enlive-format tree to the forest 
sourceraw docstring

add-tree-hiccupclj

(add-tree-hiccup arg)

Inputs: [arg] Returns: HID

Adds a Hiccup-format tree to the forest.

Inputs: [arg]
Returns: HID

Adds a Hiccup-format tree to the forest. 
sourceraw docstring

add-tree-htmlclj

(add-tree-html html-str)

Inputs: [html-str :- s/Str] Returns: HID

Adds a tree to the forest from an HTML string.

Inputs: [html-str :- s/Str]
Returns: HID

Adds a tree to the forest from an HTML string.
sourceraw docstring

add-tree-xmlclj

(add-tree-xml xml-str)

Inputs: [xml-str :- s/Str] Returns: HID

Adds a tree to the forest from an XML string.

Inputs: [xml-str :- s/Str]
Returns: HID

Adds a tree to the forest from an XML string.
sourceraw docstring

all-hidsclj

(all-hids)

Inputs: [] Returns: #{HID}

Returns a set of all HIDs in the forest

Inputs: []
Returns: #{HID}

Returns a set of all HIDs in the forest
sourceraw docstring

attr-getclj

(attr-get hid attr-name)

Inputs: [hid :- HID attr-name :- s/Keyword] Returns: tsk/KeyMap

Use the supplied function & arguments to update the attr value for a Node as in clojure.core/update

Inputs: [hid :- HID attr-name :- s/Keyword]
Returns: tsk/KeyMap

Use the supplied function & arguments to update the attr value for a Node as in clojure.core/update
sourceraw docstring

attr-removeclj

(attr-remove hid attr)

Inputs: [hid :- HID attr :- s/Keyword] Returns: tsk/KeyMap

Removes the specified attribute for an element

Inputs: [hid :- HID attr :- s/Keyword]
Returns: tsk/KeyMap

Removes the specified attribute for an element
sourceraw docstring

attr-setclj

(attr-set hid attr-name attr-val)

Inputs: [hid :- HID attr-name :- s/Keyword attr-val :- s/Any] Returns: Node

Resets the value of a leaf

Inputs: [hid :- HID attr-name :- s/Keyword attr-val :- s/Any]
Returns: Node

Resets the value of a leaf
sourceraw docstring

attr-updateclj

(attr-update hid attr-name fn-update-attr & fn-update-attr-args)

Inputs: [hid :- HID attr-name :- s/Keyword fn-update-attr & fn-update-attr-args] Returns: tsk/KeyMap

Use the supplied function & arguments to update the attr value for a Node as in clojure.core/update

Inputs: [hid :- HID attr-name :- s/Keyword fn-update-attr & fn-update-attr-args]
Returns: tsk/KeyMap

Use the supplied function & arguments to update the attr value for a Node as in clojure.core/update
sourceraw docstring

attrs-mergeclj

(attrs-merge hid attrs-in)

Inputs: [hid :- HID attrs-in :- tsk/KeyMap] Returns: tsk/KeyMap

Merge the supplied attrs map into the attrs of a Node

Inputs: [hid :- HID attrs-in :- tsk/KeyMap]
Returns: tsk/KeyMap

Merge the supplied attrs map into the attrs of a Node 
sourceraw docstring

attrs-setclj

(attrs-set hid attrs-new)

Inputs: [hid :- HID attrs-new :- tsk/KeyMap] Returns: tsk/KeyMap

Replace the attrs of a Node with the supplied attrs map

Inputs: [hid :- HID attrs-new :- tsk/KeyMap]
Returns: tsk/KeyMap

Replace the attrs of a Node with the supplied attrs map
sourceraw docstring

bush->enliveclj

(bush->enlive bush)

Inputs: [bush :- tsk/Vec] Returns: tsk/KeyMap

Converts a Bush to an Enlive-format data structure

Inputs: [bush :- tsk/Vec]
Returns: tsk/KeyMap

Converts a Bush to an Enlive-format data structure
sourceraw docstring

bush->hiccupclj

(bush->hiccup arg)

Inputs: [arg :- tsk/Vec] Returns: tsk/Vec

Converts a Bush to a Hiccup-format data structure.

Inputs: [arg :- tsk/Vec]
Returns: tsk/Vec

Converts a Bush to a Hiccup-format data structure.
sourceraw docstring

bush->treeclj

(bush->tree bush)

Inputs: [bush] Returns: tsk/KeyMap

Converts a bush to a tree

Inputs: [bush]
Returns: tsk/KeyMap

Converts a bush to a tree
sourceraw docstring

bush-node?clj

(bush-node? arg)

Inputs: [arg] Returns: s/Bool

Inputs: [arg]
Returns: s/Bool
sourceraw docstring

edn->treeclj

(edn->tree data)
(edn->tree idx data)

Inputs: ([data :- s/Any] [idx :- (s/if int? s/Int (s/eq nil)) data :- s/Any])

Creates a tree from an EDN data structure

Inputs: ([data :- s/Any] [idx :- (s/if int? s/Int (s/eq nil)) data :- s/Any])

Creates a tree from an EDN data structure
sourceraw docstring

enlive->bushclj

(enlive->bush arg)

Inputs: [arg :- tsk/KeyMap] Returns: tsk/Vec

Converts an Enlive-format data structure to a Bush.

Inputs: [arg :- tsk/KeyMap]
Returns: tsk/Vec

Converts an Enlive-format data structure to a Bush. 
sourceraw docstring

enlive->hiccupclj

(enlive->hiccup node)

Inputs: [node :- s/Any] Returns: s/Any

Inputs: [node :- s/Any]
Returns: s/Any
sourceraw docstring

enlive->treeclj

(enlive->tree enlive-tree)

Inputs: [enlive-tree :- tsk/KeyMap] Returns: tsk/KeyMap

Convert an Enlive-format data structure to a tree. Is tolerant of missing or nil values for :attrs and :content keys.

Inputs: [enlive-tree :- tsk/KeyMap]
Returns: tsk/KeyMap

Convert an Enlive-format data structure to a tree.  Is tolerant of missing or nil values
for :attrs and :content keys.
sourceraw docstring

enlive-node-lax?clj

(enlive-node-lax? arg)

Returns true for nominal Enlive nodes, else false

Returns true for nominal Enlive nodes, else false
sourceraw docstring

enlive-node-strict?clj

(enlive-node-strict? arg)

Returns true for strictly valid Enlive nodes, else false

Returns true for strictly valid Enlive nodes, else false
sourceraw docstring

filter-enlive-subtreesclj

(filter-enlive-subtrees enlive-tree-lazy subtree-path)

Lazily read an enlive tree, retaining only rooted subtrees as specified by subtree-path

Lazily read an enlive tree, retaining only rooted subtrees as specified by `subtree-path`
sourceraw docstring

find-hidclj

(find-hid root-spec tgt-path)

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec] Returns: HID

Searches as with find-hids, expecting & returning a single HID result.

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec]
Returns: HID

Searches as with `find-hids`, expecting & returning a single HID result.
sourceraw docstring

find-hidsclj

(find-hids root-spec tgt-path)

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec] Returns: [HID]

Searches for subtrees as for find-paths, but retains only the HID of each subtree root (i.e. the last element of each path vector)

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec]
Returns: [HID]

Searches for subtrees as for `find-paths`, but retains only the HID of each subtree root (i.e. the last
element of each path vector)
sourceraw docstring

find-hids-withclj

(find-hids-with root-spec tgt-path hid-pred)

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec hid-pred :- s/Any]

Searches for subtrees as for find-hids, discarding HIDs that fail the hid-pred function.

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec hid-pred :- s/Any]

Searches for subtrees as for `find-hids`, discarding HIDs that fail the `hid-pred` function.
sourceraw docstring

find-pathsclj

(find-paths root-spec tgt-path)

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec] Returns: HID

Searches the forest for subtrees matching the tgt-path rooted at root-spec. Returns a vector of hid-paths.

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec]
Returns: [[HID]]

Searches the forest for subtrees matching the `tgt-path` rooted at `root-spec`.
Returns a vector of hid-paths.
sourceraw docstring

find-paths-withclj

(find-paths-with root-spec tgt-path path-pred)

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec path-pred :- s/Any]

Searches for subtrees as for find-paths, discarding paths that fail the path-pred function.

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec path-pred :- s/Any]

Searches for subtrees as for `find-paths`, discarding paths that fail the `path-pred` function.
sourceraw docstring

forest-hid?clj

(forest-hid? arg)

Returns true if the arg type is a legal HID value

Returns true if the arg type is a legal HID value
sourceraw docstring

format-pathclj

(format-path hids)

Inputs: [hids :- [HID]]

Format an HID path for printing (bush format)

Inputs: [hids :- [HID]]

Format an HID path for printing (bush format)
sourceraw docstring

format-pathsclj

(format-paths solns)

Inputs: [solns :- HID]

Format a list of HID paths for printing (bush format)

Inputs: [solns :- [[HID]]]

Format a list of HID paths for printing (bush format)
sourceraw docstring

has-descendant-with?clj

(has-descendant-with? root-spec tgt-path path-pred)

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec path-pred :- s/Any]

Returns true iff root-hid has at least one matching subtree, after discarding paths failing the 'path-pred' function.

Inputs: [root-spec :- HidRootSpec tgt-path :- tsk/Vec path-pred :- s/Any]

Returns true iff `root-hid` has at least one matching subtree, after discarding paths failing the 'path-pred' function.
sourceraw docstring

has-descendant?clj

(has-descendant? root-hid tgt-path)

Inputs: [root-hid :- HID tgt-path :- tsk/Vec]

Returns true iff root-hid has at least one matching subtree

Inputs: [root-hid :- HID tgt-path :- tsk/Vec]

Returns true iff `root-hid` has at least one matching subtree
sourceraw docstring

hiccup->bushclj

(hiccup->bush arg)

Inputs: [arg :- tsk/Vec] Returns: tsk/Vec

Converts a Hiccup-format data structure to a Bush.

Inputs: [arg :- tsk/Vec]
Returns: tsk/Vec

Converts a Hiccup-format data structure to a Bush.
sourceraw docstring

hiccup->enliveclj

(hiccup->enlive node)

Inputs: [node :- s/Any] Returns: s/Any

Converts a data from Hiccup -> Enlive format

Inputs: [node :- s/Any]
Returns: s/Any

Converts a data from Hiccup -> Enlive format
sourceraw docstring

hiccup->treeclj

(hiccup->tree arg)

Inputs: [arg :- tsk/Vec] Returns: tsk/KeyMap

Converts a Hiccup-format data structure to a Tree.

Inputs: [arg :- tsk/Vec]
Returns: tsk/KeyMap

Converts a Hiccup-format data structure to a Tree.
sourceraw docstring

HIDclj

The Plumatic Schema type name for a pointer to a forest node (abbrev. for Hex ID)

The Plumatic Schema type name for a pointer to a forest node (abbrev. for Hex ID)
sourceraw docstring

hid->attrclj

(hid->attr hid attr)

Inputs: [hid :- HID attr :- s/Keyword] Returns: s/Any

Given an HID, returns the value of a single attr

Inputs: [hid :- HID attr :- s/Keyword]
Returns: s/Any

Given an HID, returns the value of a single attr
sourceraw docstring

hid->attrsclj

(hid->attrs hid)

Inputs: [hid :- HID] Returns: tsk/KeyMap

Given an HID, returns all node attributes as a map

Inputs: [hid :- HID]
Returns: tsk/KeyMap

Given an HID, returns all node attributes as a map
sourceraw docstring

hid->bushclj

(hid->bush hid)

Inputs: [hid :- HID] Returns: tsk/Vec

Returns the subtree rooted ad an HID (bush format)

Inputs: [hid :- HID]
Returns: tsk/Vec

Returns the subtree rooted ad an HID (bush format)
sourceraw docstring

hid->ednclj

(hid->edn hid)

Inputs: [hid :- HID]

Returns the data rooted ad an HID (EDN format)

Inputs: [hid :- HID]

Returns the data rooted ad an HID (EDN format)
sourceraw docstring

hid->enliveclj

(hid->enlive hid)
source

hid->hiccupclj

(hid->hiccup hid)

Inputs: [hid :- HID] Returns: tsk/Vec

Returns the subtree rooted ad an HID (hiccup format)

Inputs: [hid :- HID]
Returns: tsk/Vec

Returns the subtree rooted ad an HID (hiccup format)
sourceraw docstring

hid->kidsclj

(hid->kids hid)

Inputs: [hid :- HID] Returns: [HID]

Returns the HIDs for a nodes children.

Inputs: [hid :- HID]
Returns: [HID]

Returns the HIDs for a nodes children.
sourceraw docstring

hid->leafclj

(hid->leaf hid)

Inputs: [hid :- HID] Returns: Node

Returns the leaf node corresponding to an HID

Inputs: [hid :- HID]
Returns: Node

Returns the leaf node corresponding to an HID
sourceraw docstring

hid->nodeclj

(hid->node hid)

Inputs: [hid :- HID] Returns: Node

Returns the node corresponding to an HID

Inputs: [hid :- HID]
Returns: Node

Returns the node corresponding to an HID
sourceraw docstring

hid->treeclj

(hid->tree hid)

Inputs: [hid :- HID] Returns: tsk/KeyMap

Inputs: [hid :- HID]
Returns: tsk/KeyMap
sourceraw docstring

hid->valueclj

(hid->value hid)

Inputs: [hid :- HID] Returns: s/Any

Given an HID, returns the :value attribute

Inputs: [hid :- HID]
Returns: s/Any

Given an HID, returns the :value attribute
sourceraw docstring

HidRootSpecclj

The Plumatic Schema type name for the values accepted as starting points (roots) for a subtree path search.

The Plumatic Schema type name for the values accepted as starting points (roots) for a subtree path search.
sourceraw docstring

html->enliveclj

(html->enlive html-str)

Inputs: [html-str :- s/Str] Returns: tsk/KeyMap

Inputs: [html-str :- s/Str]
Returns: tsk/KeyMap
sourceraw docstring

Interceptorclj

Plumatic Schema type name for interceptor type used by walk-tree.

Plumatic Schema type name for interceptor type used by `walk-tree`.
sourceraw docstring

kids-appendclj

(kids-append hid kids-new)

Inputs: [hid :- HID kids-new :- [HID]] Returns: tsk/KeyMap

Appends a list of kids a Node

Inputs: [hid :- HID kids-new :- [HID]]
Returns: tsk/KeyMap

Appends a list of kids a Node
sourceraw docstring

kids-prependclj

(kids-prepend hid kids-in)

Inputs: [hid :- HID kids-in :- [HID]] Returns: tsk/KeyMap

Appends a list of kids a Node

Inputs: [hid :- HID kids-in :- [HID]]
Returns: tsk/KeyMap

Appends a list of kids a Node
sourceraw docstring

kids-setclj

(kids-set hid kids-new)

Inputs: [hid :- HID kids-new :- [HID]] Returns: Node

Resets the kids of a Node to the supplied list

Inputs: [hid :- HID kids-new :- [HID]]
Returns: Node

Resets the kids of a Node to the supplied list
sourceraw docstring

kids-updateclj

(kids-update hid fn-update-kids & fn-update-kids-args)

Inputs: [hid :- HID fn-update-kids & fn-update-kids-args] Returns: tsk/KeyMap

Updates the kids for a Node using a function, as in clojure.core/update

Inputs: [hid :- HID fn-update-kids & fn-update-kids-args]
Returns: tsk/KeyMap

Updates the kids for a Node using a function, as in clojure.core/update
sourceraw docstring

leaf-hid?clj

(leaf-hid? hid)

Inputs: [hid :- HID]

Returns true iff an HID is a leaf

Inputs: [hid :- HID]

Returns true iff an HID is a leaf
sourceraw docstring

leaf-path?clj

(leaf-path? path)

Inputs: [path :- [HID]] Returns: s/Bool

Returns true if an HID path ends in a leaf

Inputs: [path :- [HID]]
Returns: s/Bool

Returns true if an HID path ends in a leaf
sourceraw docstring

new-forestclj

(new-forest)

Returns a new, empty forest.

Returns a new, empty forest.
sourceraw docstring

new-hidclj

(new-hid)

Inputs: [] Returns: HID

Returns a new HexID

Inputs: []
Returns: HID

Returns a new HexID
sourceraw docstring

Nodeclj

The Plumatic Schema description of a legal node in a forest of trees

The Plumatic Schema description of a legal node in a forest of trees
sourceraw docstring

raw-leaf-treenode?clj

(raw-leaf-treenode? node)

Inputs: [node :- tsk/KeyMap] Returns: s/Bool

Returns true if a TreeNode is a leaf with {:tag ::raw}.

Inputs: [node :- tsk/KeyMap]
Returns: s/Bool

Returns true if a TreeNode is a leaf with {:tag ::raw}.
sourceraw docstring

raw-whitespace-leaf-treenode?clj

(raw-whitespace-leaf-treenode? node)

Inputs: [node :- tsk/KeyMap] Returns: s/Bool

Returns true if a TreeNode is a leaf with {:tag ::raw} and whitespace value.

Inputs: [node :- tsk/KeyMap]
Returns: s/Bool

Returns true if a TreeNode is a leaf with {:tag ::raw} and whitespace value.
sourceraw docstring

remove-kidsclj

(remove-kids hid kids-leaving)
(remove-kids hid kids-leaving missing-kids-ok?)

Inputs: ([hid :- HID kids-leaving :- (s/if sequential? [HID] #{HID})] [hid :- HID kids-leaving :- (s/if sequential? [HID] #{HID}) missing-kids-ok? :- s/Bool]) Returns: tsk/KeyMap

Removes a set of children from a Node (including any duplcates).

Inputs: ([hid :- HID kids-leaving :- (s/if sequential? [HID] #{HID})] [hid :- HID kids-leaving :- (s/if sequential? [HID] #{HID}) missing-kids-ok? :- s/Bool])
Returns: tsk/KeyMap

Removes a set of children from a Node (including any duplcates).
sourceraw docstring

remove-path-subtreeclj

(remove-path-subtree path)

Inputs: [path :- [HID]]

Given an HID path, removes from the forest all nodes in the subtree rooted at the end of that path.

Inputs: [path :- [HID]]

Given an HID path, removes from the forest all nodes in the subtree rooted at the end of that path.
sourceraw docstring

remove-whitespace-leavescljdeprecated

(remove-whitespace-leaves)
(remove-whitespace-leaves root-hid)

Inputs: ([] [root-hid :- HID])

Removes leaves from all trees in the forest that are whitespace-only strings (including zero-length strings).

Inputs: ([] [root-hid :- HID])

Removes leaves from all trees in the forest that are whitespace-only strings
(including zero-length strings).
sourceraw docstring

root-hidsclj

(root-hids)

Inputs: [] Returns: #{HID}

Return a vector of all root HID's

Inputs: []
Returns: #{HID}

Return a vector of all root HID's
sourceraw docstring

set-nodeclj

(set-node hid node)
(set-node hid attrs kids)

Inputs: ([hid :- HID node :- Node] [hid :- HID attrs :- tsk/KeyMap kids :- [HID]])

Unconditionally sets the value of a Node in the forest

Inputs: ([hid :- HID node :- Node] [hid :- HID attrs :- tsk/KeyMap kids :- [HID]])

Unconditionally sets the value of a Node in the forest
sourceraw docstring

tree->bushclj

(tree->bush tree-node)

Inputs: [tree-node :- tsk/Map] Returns: tsk/Vec

Inputs: [tree-node :- tsk/Map]
Returns: tsk/Vec
sourceraw docstring

tree->ednclj

(tree->edn node)

Converts a tree to an EDN data structure

Converts a tree to an EDN data structure
sourceraw docstring

tree->enliveclj

(tree->enlive tree-node)

Inputs: [tree-node :- tsk/KeyMap] Returns: (s/if map? tsk/KeyMap tsk/Vec)

Inputs: [tree-node :- tsk/KeyMap]
Returns: (s/if map? tsk/KeyMap tsk/Vec)
sourceraw docstring

tree->hiccupclj

(tree->hiccup arg)

Inputs: [arg :- tsk/KeyMap] Returns: tsk/Vec

Converts a Tree to a Hiccup-format data structure.

Inputs: [arg :- tsk/KeyMap]
Returns: tsk/Vec

Converts a Tree to a Hiccup-format data structure.
sourceraw docstring

tree-node?clj

(tree-node? node)

Inputs: [node :- tsk/KeyMap] Returns: s/Bool

Returns true if the arg is a legal tree node

Inputs: [node :- tsk/KeyMap]
Returns: s/Bool

Returns true if the arg is a legal tree node
sourceraw docstring

valid-forest-leaf?clj

(valid-forest-leaf? node)

Inputs: [node :- tsk/KeyMap] Returns: s/Bool

Returns true if the arg is a forest leaf node (empty :tupelo.forest/khids).

Inputs: [node :- tsk/KeyMap]
Returns: s/Bool

Returns true if the arg is a forest leaf node (empty :tupelo.forest/khids). 
sourceraw docstring

valid-forest-node?clj

(valid-forest-node? arg)

Inputs: [arg :- tsk/KeyMap] Returns: s/Bool

Returns true if the arg is a legal forest node

Inputs: [arg :- tsk/KeyMap]
Returns: s/Bool

Returns true if the arg is a legal forest node
sourceraw docstring

validate-attrsclj

(validate-attrs attrs)

Inputs: [attrs :- tsk/KeyMap] Returns: tsk/KeyMap

Inputs: [attrs :- tsk/KeyMap]
Returns: tsk/KeyMap
sourceraw docstring

validate-forestclj

(validate-forest)
source

validate-hidclj

(validate-hid hid)

Inputs: [hid :- HID]

Returns HID arg iff it exists in the forest, else throws.

Inputs: [hid :- HID]

Returns HID arg iff it exists in the forest, else throws.
sourceraw docstring

walk-treeclj

(walk-tree root-hid intc-map)

Inputs: [root-hid :- HID intc-map :- tsk/KeyMap]

Recursively walks a subtree of the forest, applying the supplied :enter and ':leave` functions to each node. Usage:

 (walk-tree <subtree-root-hid> intc-map)

where intc-map is an interceptor map like:

 { :enter <pre-fn>       ; defaults to `identity`
   :leave <post-fn> }    ; defaults to `identity`

Here, pre-fn and post-fn look like:

 (fn [path] ...)

where path is a vector of HIDs beginning at the root of the sub-tree being walked.

Inputs: [root-hid :- HID intc-map :- tsk/KeyMap]

Recursively walks a subtree of the forest, applying the supplied `:enter` and ':leave` functions
 to each node.   Usage:

     (walk-tree <subtree-root-hid> intc-map)

 where `intc-map` is an interceptor map like:

     { :enter <pre-fn>       ; defaults to `identity`
       :leave <post-fn> }    ; defaults to `identity`

 Here, `pre-fn` and `post-fn` look like:

     (fn [path] ...)

 where `path` is a vector of HIDs beginning at the root of the sub-tree being walked.
sourceraw docstring

whitespace-leaf-hid?clj

(whitespace-leaf-hid? hid)

Inputs: [hid :- HID] Returns: s/Bool

Returns true iff an HID is a leaf node (no children) and has a :value attribute containing only whitespace.

Inputs: [hid :- HID]
Returns: s/Bool

Returns true iff an HID is a leaf node (no children) and has a `:value` attribute containing only whitespace.
sourceraw docstring

with-forestcljmacro

(with-forest forest-arg & forms)
source

with-forest-resultcljmacro

(with-forest-result forest-arg & forms)
source

xml->enliveclj

(xml->enlive xml-str)

Inputs: [xml-str :- s/Str] Returns: tsk/KeyMap

Inputs: [xml-str :- s/Str]
Returns: tsk/KeyMap
sourceraw docstring

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

× close