Liking cljdoc? Tell your friends :D

midje.parsing.util.zip

Zipper util functions.

Zipper util functions.
raw docstring

first-truthy-fnclj

(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
sourceraw docstring

n-timesclj

(n-times n zip-fn loc)
source

previous-formclj

(previous-form loc)
source

previous-locclj

(previous-loc loc)
source

remove-moving-rightclj

(remove-moving-right loc)
source

skip-down-then-rightmost-leafclj

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

skip-to-rightmost-leafclj

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

translate-zipperclj

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

unchunkclj

(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
sourceraw docstring

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

× close