Zipper util functions.
Zipper util functions.
(first-truthy-fn preds & args)
Returns the first function in a seq of functions that evaluates to truthy for the given arguments - it shortcircuits, only evaluating the minimum number of functions necessary
Returns the first function in a seq of functions that evaluates to truthy for the given arguments - it shortcircuits, only evaluating the minimum number of functions necessary
(skip-down-then-rightmost-leaf loc)
When positioned at a branch, move into it and then to the rightmost leaf.
When positioned at a branch, move into it and then to the rightmost leaf.
(skip-to-rightmost-leaf loc)
When positioned at leftmost position of branch, move to the end form. In a tree, that's the rightmost leaf.
When positioned at leftmost position of branch, move to the end form. In a tree, that's the rightmost leaf.
(translate-zipper form & preds+translate-fns)
Traverses the zipper - for the first predicate that evaluates to truthy for matching a node, calls the corresponding translate function on that node. Then, continues traversing.
Traverses the zipper - for the first predicate that evaluates to truthy for matching a node, calls the corresponding translate function on that node. Then, continues traversing.
(unchunk s)
Force a lazy sequence to not use size 32 chunks, but true one-element laziness
Force a lazy sequence to not use size 32 chunks, but true one-element laziness
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close